What is the output?
Anonymous Quiz
21%
1 7 -6 2147483648 15 0
37%
1 7 -6 -2147483648 15 5
31%
1 7 -6 -2147483648 15 0
11%
1 7 -5 -2147483648 15 0
❤3🤔3
CHALLENGE
'use strict';
function getValue() {
return this.value;
}
const obj = { value: 42, getValue };
const fn = obj.getValue;
try {
fn();
} catch (err) {
console.log(err.constructor.name, typeof this);
}
❤2
What is the output?
Anonymous Quiz
30%
ReferenceError undefined
25%
TypeError undefined
29%
undefined undefined
17%
TypeError object
❤3