An Easy and better way to check for null and undefined values in JavaScript
Originally posted here!
Photo by
Laya Clode
In many cases, we have null or undefined values in our variables. We can conditionally show other relevant value using the new ?? (Nullish coalescing) operator instead of just showing null ...
melvingeorge-me.hashnode.dev3 min read