Nullish coalescing (??) and Optional chaining (?.)
We all are familiar with the logical OR (||) operator. It returns the right-hand side operator when the left-hand side operator is a falsy value. console.log(10 > 20 || 20); //20 But what if you want to use falsy values like 0 , '' , false, and NaN ...
Feb 22, 20234 min read71
