FEATUREDARTICLES / 65
FEATURED
JavaScript Fundamentals

Truthiness and Fallback Values: Choosing Between || and ??

The || and ?? operators can both provide fallback values, but they disagree about when a fallback is needed. Learn how to preserve meaningful values such as 0, false and an empty string while still handling missing data.

Read article ↗
JAVASCRIPT CRAFT · 4 MIN
JavaScript Craft

More to discover

More to discover

JavaScript Craft

Categories