how the javascript compare the number and string?
I know the meaning of ===, it will check whether the operand is identical
or notC so 1 === '1' will result false, but 1 == '1' result true, but
typeof 1 is number and typeof '1' is string, so how javascript compare 1
== '1', are there any converting, and how?
No comments:
Post a Comment