Why does 0 == 'empty'?
Posted: Wed Feb 24, 2010 6:11 pm
After a few hours of frustration, I found that 0 == "empty" evaluates as true.
I can understand why 0 == "null" would be true and why 0 === null would be false, but I don't get what's happening above.
Can anyone explain this to me?
Thank you.
I can understand why 0 == "null" would be true and why 0 === null would be false, but I don't get what's happening above.
Can anyone explain this to me?
Thank you.