All quizzesEasy
Core Concepts
Preview — 3 of 10 questions
What will the following code output?
javascript
console.log(typeof null);
console.log(typeof []);
console.log(typeof {});
console.log(typeof function () {});A"null", "array", "object", "function"
B"object", "object", "object", "function"
C"null", "object", "object", "function"
D"object", "array", "object", "function"
Which statement is true about var, let, and const?
Avar is accessible outside of {} blocks, but let and const are not.
Blet and const are hoisted, but var is not.
Cconst allows modifying its value after declaration.
Dlet is globally accessible throughout the program.
What is the output of the following code?
javascript
console.log(5 + "5");
console.log("10" - 3);
console.log([] == false);
console.log(null == undefined);
console.log(null === undefined);A"55", 7, true, true, false
B"55", 7, false, false, false
C"55", 7, true, true, true
D"55", 7, false, true, false
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.