Javascript
Apr 22, 2026
What does this evaluate to?
console.log([] == false)
Explanation
[] converts to "" (empty string), then 0. false converts to 0. 0 == 0 is true.
📝
Reviewed by CodeShot Editorial
Every challenge is code-reviewed by senior developers to ensure accuracy and real-world relevance. Learn more.