🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: JavaScript Basics: questions with answers

9 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does this print? (code)
  2. Q2. What does this print? (code)
  3. Q3. What does 5 === "5" return?
  4. Q4. Which value is truthy?
  5. Q5. What does this print? (code)
  6. Q6. Why should you avoid var in modern JavaScript?
  7. Q7. What does this print? (code)
  8. Q8. What does this print? (code)
  9. Q9. Which of these values is falsy?