See also [this question](http://stackoverflow.com/questions/9032856/what-is-the-explanation-for-these-bizarre-javascript-behaviours-mentioned-in-the)
– Adam RosenfieldMar 28 '13 at 16:53
Not exactly. You can find the specific answer in the other question ... excatly here http://es5.github.com/#x11.9.3.
– Marco S.Mar 28 '13 at 17:11
1 Answers1
0
That is because javascript is attempting to do a type conversion on '' since '' is a type String and 0 is a number type. '', when converted to a number, is 0
there is no conversion to a `Boolean` here. The _result_ of the `==` operation is a boolean, though.
– AlnitakMar 28 '13 at 16:54
Yeah sorry I realized that was incorrect after I wrote it. Thanks for the tip, I edited my response - doesn't matter since the question is closed now anyways.
– What have you triedMar 28 '13 at 16:57