Nullish coalescing operator (??) vs OR(||)
Oct 30, 2023 · 2 min read · (raw notes)Nullish coalescing operator (??) if the left side operand is NULL or UNDEFINED, the right-hand side operand is returned.const foo = null ?? 'default string'; console.log(foo); // Expected output: "default string" Nullish values are : NULL ...
Join discussion













