Which one of these values is truthy?
Nullish coalescing is a relativly new operator that was introduced in ES2020. It is similar to the logical OR operator
||, but it only returns the right-hand side if the left-hand side is
const foo = null ?? 'bar'; console.log(foo); // 'bar' const foo = 0 ?? 'bar'; console.log(foo); // 0