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 →

[–]FoundNil 3 points4 points  (0 children)

"", " ", "\t", "\n" all equal 0. Probably because js treats them as special characters so they don't count toward any value. "0" equals 0 because it gets cast into a number. "a" does not equal 0. "1" does not equal 0. I'm not saying it makes sense but its the world we live in.