普通の演算子(==)と厳密等価演算子(===)の違いは、
評価する時に型変換するかどうかです。
<html> <head> <title>test</title> <script type="text/javascript"> (function(){ alert(1 == true); // true alert(1 === true); // false alert(0 == false); // true alert(0 === false); // false alert(10 == "10"); // true alert(10 === "10"); // false })(); </script> </head> <body></body> </html>
上記のように、booleanと整数、数値と文字列を比較するような場合に違いが出てきます。