Question |
Good |
Fails |
What will print this script?
let a = (null == undefined)
console.log(a)
|
Warning: Undefined array key "60f6928db3843718a41953e2" in /var/www/templates/Quiz/questions-stats.html on line 30
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 30
|
Warning: Undefined array key "60f6928db3843718a41953e2" in /var/www/templates/Quiz/questions-stats.html on line 31
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 31
|
To what evaluates typeof a and typeof b in the following snippet:
let a = b = 0;
a++;
return a;
}
foo();
typeof a;
typeof b;
|
Warning: Undefined array key "610949c7b3843718a41953ed" in /var/www/templates/Quiz/questions-stats.html on line 30
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 30
|
Warning: Undefined array key "610949c7b3843718a41953ed" in /var/www/templates/Quiz/questions-stats.html on line 31
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 31
|
var f = function g(){ return 23; };
typeof g();
|
Warning: Undefined array key "61094b40b3843718a41953ee" in /var/www/templates/Quiz/questions-stats.html on line 30
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 30
|
Warning: Undefined array key "61094b40b3843718a41953ee" in /var/www/templates/Quiz/questions-stats.html on line 31
Warning: Trying to access array offset on value of type null in /var/www/templates/Quiz/questions-stats.html on line 31
|