Javascript
Apr 14, 2026
Which of these is truthy in JavaScript?
Boolean("")
Boolean(0)
Boolean("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.