← 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 →- Q1. What does this print? (code)
- Q2. What does this print? (code)
- Q3. What does 5 === "5" return?
- Q4. Which value is truthy?
- Q5. What does this print? (code)
- Q6. Why should you avoid var in modern JavaScript?
- Q7. What does this print? (code)
- Q8. What does this print? (code)
- Q9. Which of these values is falsy?