What is Nullish Coalescing (or ??) in Javascript
In Javascript, the nullish coalescing operator, or ?? operator is used to return the right hand side whenever the left hand side is null or undefined. To understand a little bit better, let's look at a few examples:
// Is set to 0
let x = 0 ?? "hello...
fjolt.hashnode.dev3 min read