Back

JavaScript Quiz

Pass with 7 / 10 to unlock your certificate.

  1. 1. What is the output of: console.log(typeof null)?

  2. 2. Which of these creates a true block-scoped variable?

  3. 3. What does [] + [] evaluate to in JavaScript?

  4. 4. Which method returns a new array without mutating the original?

  5. 5. What is the result of: 0.1 + 0.2 === 0.3?

  6. 6. Which keyword guarantees a function call's `this` value?

  7. 7. What does Promise.all reject with?

  8. 8. Which is NOT a valid way to clone an object shallowly?

  9. 9. What is hoisting?

  10. 10. Which event loop phase runs setTimeout callbacks?