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
22%
TypeError undefined
30%
undefined undefined
17%
TypeError object
❤3
CHALLENGE
console.log(
typeof typeof 1,
1 + typeof 1,
2 ** 3 ** 2,
1 + 2 + '3',
1 < 2 < 3,
3 > 2 > 1
);
What is the output?
Anonymous Quiz
35%
string 1number 512 33 true true
27%
string number1 512 33 true false
24%
string 1number 512 33 true false
14%
number number 512 33 true true
❤1