BC JS

๐Ÿ’› JavaScript tip ๐Ÿ’›

The nullish coalescing operator only reacts to null and undefined, contrary to the logical OR that reacts to all falsy values.

Sometimes, the nullish coalescing operator might be a better choice, especially when setting defaults. ๐Ÿ‘‡๐Ÿป

You May Also Like