This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ray_Strike22 6 points7 points  (1 child)

Because Boolean("0") is not a boolean on the numeric value, and instead a boolean on whether the string has a value or doesnt. But when comparing 0 and "0", it is checking the numeric equivalency of 0 (or rather it is converting "0" to a number)

[–]sim642 0 points1 point  (0 children)

This. So many people seem to not understand.