Possible Duplicate:
Javascript === vs == : Does it matter which “equal” operator I use?
What is the difference between ==
and ===
in JavaScript? I have also seen !=
and !==
operators. Are there more such operators?
Possible Duplicate:
Javascript === vs == : Does it matter which “equal” operator I use?
What is the difference between ==
and ===
in JavaScript? I have also seen !=
and !==
operators. Are there more such operators?
Take a look here: http://longgoldenears.blogspot.com/2007/09/triple-equals-in-javascript.html
The 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.
===
and!==
are strict comparison operators:Comparison Operators - MDC