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