Practice Set
Practice questions aggregated across this exam type.
Practice Questions
10 of 225 questions
Q1. What is the output?
console.log(typeof NaN);
Select one answer before revealing.
Q2. What is the output?
let x; console.log(x + 1);
Select one answer before revealing.
Q3. What is the output?
console.log(2 ** 3, 10 % 3);
Select one answer before revealing.
Q4. What is the output?
console.log(!!"", !!"0");
Select one answer before revealing.
Q5. Which keyword declares a block-scoped variable that cannot be reassigned?
Select one answer before revealing.
Q6. What does typeof null return in JavaScript?
Select one answer before revealing.
Q7. Which of the following are primitive data types in JavaScript? (More than one answer may be correct.)
Select one answer before revealing.
Q8. What is the output of the following code?
console.log(0.1 + 0.2 === 0.3);
Select one answer before revealing.
Q9. What is the difference between == and === in JavaScript?
Select one answer before revealing.
Q10. What is the output of the following code?
let x = 5; console.log(x > 3 ? "big" : "small");
Select one answer before revealing.
Important Concepts
Study chapter-wise concepts before you practice.