Possible Duplicates:
Is there a difference between !== and != in PHP?
Javascript === vs == : Does it matter which “equal” operator I use?
In some cases when checking for not equal, I saw using !=
and in some places i saw !==
. Is there any difference in that?
Example:
var x = 10;
if (x != 10) {
//...
}
and
if (x !== 10) {
//...
}