undefined
and null
const result = true.unknownProperty;
What happens?
const result = null.unknownProperty;
What happens?
undefined
or null
?Given the following JavaScript code.
let foo;
function bar() {}
const baz = (x) => x;
Which of these expressions evaluates to undefined
? The remaining ones evaluate to null
.