← Quiz: JavaScript Basics: all 9 questions
Quiz: JavaScript Basics · Question 9 of 9
Which of these values is falsy?
Which of these values is falsy?
- A."0"
- B.[]
- C.""
- D.{}
Answer & explanation
Correct answer: ""
The empty string is falsy; a non-empty string, an empty array and an empty object are truthy.
Can you get the rest right without peeking?
Take the timed Quiz: JavaScript Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →