3 ms·
Ah but more fun with Javascript >>> "9223372036854775807" == "9223372036854775808" false >>> 9223372036854775807 == "9223372036854775808" true >>> 9223372036
by mikeryan 15y ago
Ah but more fun with Javascript
>>> "9223372036854775807" == "9223372036854775808"
false
>>> 9223372036854775807 == "9223372036854775808"
true
>>> 9223372036854775807 == 9223372036854775808
true
I believe the grandparent post is more referring to "general" use cases then this one. Personally I now default to strict comparison operators both in JS and PHP unless I explicitly want a loose comparison and end up missing most of these strange vagaries these days.