Ask a Question
Advertise on boostr.in
>>> "0" == false
>>> false == "0"
So why does the following print "ha"?
>>> if ("0") console.log("ha")
Sep 10, 2015
to add a comment.
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please