JavaScript

OR (||) vs Nullish Coalescing (??) in TypeScript

The operator signifies an operation to be performed on value(s). The value(s) on which the operation is performed are called operand(s). TypeScript provides many operators such as +, -, *, /, ++, –, >, <, ==, ===, &&, || etc. TypeScript 3.7 introduced a new operator called the “Nullish Coalescing (??)”. It is quite a …

Tags