Possible duplicates:Difference between == and === in JavaScriptJavascript === vs ==: Does it matter which "equal" operator I use?
What is the difference between == and === ? Also between !== and !== ?
==
===
!==
There are already many answers to this question in Stackoverflow.
Short:
== compares only values
=== compares values + type
var check1 = '10', check2 = 10; check1 == check2 // true check1 === check2 // false
"==" means equals, while "===" means identically equal.
In short, "==" will try and force / convert value types when comparing, so "2" == 2, while "===" will not.