nullish coalescing

The nullish coalescing operator should consider undeclared variables and should return the right-hand operand instead of throwing an error.

This operator works as I say when a property of an object is not defined.
console.log(baz.firstProp ?? 'does not exist')

Many languages ​​do this and it would greatly facilitate the syntax of this type of cases that can be very typical.

I’m not convinced it is very typical - referencing an undeclared variable should only happen if you’re trying to reference a global that might not exist, which is pretty rare, and typeof guards it already for those cases.

What’s your use case for it?