Javascript Reference
Categories: Operators

javascript Operators ===

@March 15, 2008, 1:22 a.m.
=== Firefox/Netscape/NN 4 IE 4 ECMA 2  

  

The strictly equals (identity) operator compares two operand values and returns a Boolean result. Both the value and data type of the two operands must be identical for this operator to return true (no automatic data type conversions occur). See the equality operator (==) for more liberal equality comparisons.

 
Example
 
if (n === m) {
    ...
}

Powered by Linode.