Leaderboard Archive
Javascript Apr 14, 2026

Which of these is truthy in JavaScript?

Boolean("")
Boolean(0)
Boolean("false")
A false, false, false
B false, false, true
C true, true, true
D false, true, false
Explanation
Empty string "" and 0 are falsy. But "false" is a non-empty string, which is truthy.
📝
Reviewed by CodeShot Editorial
Every challenge is code-reviewed by senior developers to ensure accuracy and real-world relevance. Learn more.

Ready for your shot?

Join thousands of developers solving one logic puzzle every morning.

Solve Today's Challenge →