← Quiz: JavaScript Basics: all 9 questions
Quiz: JavaScript Basics · Question 4 of 9
Which value is truthy?
Which value is truthy?
- A.0
- B.""
- C."0"
- D.null
Answer & explanation
Correct answer: "0"
"0" is a non-empty string, so it's 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 →