What is the output?
Anonymous Quiz
33%
string 1number 512 33 true true
29%
string number1 512 33 true false
27%
string 1number 512 33 true false
11%
number number 512 33 true true
❤2
CHALLENGE
function Foo(x) {
this.x = x;
return { x: x * 2 };
}
function Bar(x) {
this.x = x;
return 42;
}
const f = new Foo(5);
const b = new Bar(5);
console.log(f.x, b.x, f instanceof Foo, b instanceof Bar);What is the output?
Anonymous Quiz
21%
5 5 false true
36%
10 5 true true
43%
10 5 false true
0%
10 42 false true