NOT Identically equal to (!==) (Operator/identity)

Compare two values for non-equality and identical type.


ECMAScript edition - 3
JavaScript - 1.3
JScript - 1.0
Internet Explorer - 3.02
Netscape - 4.06
Property/method value type:Boolean primitive
JavaScript syntax:-anOperand1 !== anOperand2
Argument list:anOperand1A value to be compared
anOperand2Another value of the same type to be compared

The two operands are compared and Boolean false is returned if both values are equal, and of the same type, otherwise Boolean true is returned.

The associativity is from left to right.

Refer to the Operator Precedence topic for details of execution order.


Example code:

   myObject1 = 100;
   myObject2 = "100";
   if(myObject1 != myObject2)
   document.write("Objects are NOT equal<BR>");
   document.write("Objects are equal<BR>");
   if(myObject1 !== myObject2)
   document.write("Objects are NOT identical<BR>");
   document.write("Objects are identical<BR>");

See also:ASCII, Associativity, Equal to (==), Equality expression, Equality operator, Greater than (>), Greater than or equal to (>=), Identically equal to (===), Identity operator, JellyScript, Less than (<), Less than or equal to (<=), Logical expression, Logical operator, NOT Equal to (!=), Operator Precedence, Relational expression, Relational operator, typeof, Unicode


ECMA 262 edition 3 - section - 11.9.5

Wrox Instant JavaScript - page - 39