Have you ever used the strict equal operator? I learned about it few days ago…
Below is a quick explanation of its behavior:
“The strict equal to operator returns true if both operands are equal (and of the same type). It doesn’t perform any data type conversion, so an expression like 1 === true returns false and 1 === “1″ also returns false, because this operator checks for the type of the operands. 1 is a numerical value and “1″ is a string value; their types are different.”
Find more about Javascript comparison operators.
===, comparison operator strict equal







0 Responses to “Operator ===”