Dealing With Null Data in Javascript Using Nullish Coalescing
The nullish coalescing (??) operator is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand. Earlier, when one wanted to assign a default value to a variable, a common pattern was to use the logical OR operator (||): let foo; // foo is never assigned any value so it is still undefined const someDummyText = foo || "Hello!...