If I do 0 == \"0\" it evaluates to true. Try,
if( -777 == \"-777\" ) alert(\"same\");
alert happens.
And, it\'s also noticeable th
Javascript doesn't cast "false" to boolean false, only to the string "false".
You can loosely cast string values to their integer equivalent, thus your first example works.