JavaScript - Nullish Coalescing Operator
Overview
The nullish coalescing operator (??) was introduced in ECMAScript version 2020. It combines two expressions to return the value of the first expression if it is neither null nor undefined or returns the value of the second expression.
Let's take an example to get a clear picture.
let