2 ms·
Here's the underlying rules of how "x == y" works: http://ecma-international.org/ecma-262/5.1/#sec-11.9.3 http://ecma-international.org/ecma-262/5.1/#sec-11.9.3
by Scaevolus 13y ago
Here's the underlying rules of how "x == y" works: http://ecma-international.org/ecma-262/5.1/#sec-11.9.3 http://ecma-international.org/ecma-262/5.1/#sec-11.9.3
Weak typing and automatic coercions lead to some confusing results, but JS fares better than PHP.