===
(strict equal) operator returns true if the operands are equal and of the same type. The !==
(strict not equal) operator returns true if the operands are not equal and/or not of the same type. See "Comparison Operators" on page 50.==
(equal) and !=
(not equal) operators reverts to the JavaScript 1.1 implementation. If the two operands are not of the same type, JavaScript attempts to convert the operands to an appropriate type for the comparison. See "Comparison Operators" on page 50.if(x = y)
. Previous JavaScript versions converted if(x = y)
to if(x == y)
, but 1.3 generates a runtime error. See "if...else Statement" on page 80.undefined
or null
, including a Boolean object whose value is false, evaluates to true when passed to a conditional statement. See "if...else Statement" on page 80.Last Updated: 05/27/99 21:21:16
Any sample code included above is provided for your use on an "AS IS" basis, under the Netscape License Agreement - Terms of Use