Hey guys. Why in JS true == 5 or true == 'hi' returns false? I am a PHP programmer and in PHP such comparisons return true.
Tanx. I know but as you said it tries to convert right one type to the left one. So it should be true == true. Isn't it?
I know, but if true == 5 returns false, then what's the difference between === and ==?