Null-ish coalescing code example
Example: Null-ish coalescing
function print(val) { return val ?? 'Missing'}print(undefined) // 'Missing'print(null) // 'Missing'print(0) // 0print('') // ''print(false) // falseprint(NaN) // NaN