本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

===

Returns true if both values are of the same type and are equal.

Syntax

valueA === valueB

Example

var foo = 5;
if (foo === 5)
    return true; //Returns true because foo == 5 and is of the same type (Number).

Remarks

Both values must be of the same type for this expression to return true.