Nullish coalescing operator
Nullish coalescing operator The nullish coalescing operator(??) is a logical operator Returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand const name = null ?? 'John'; console.log(name); // John