About operators 189
About relational operators
The relational operators take two operands, compare their values, and return a Boolean value.
All of the operators in this table have equal precedence:
For information on using relational operators, see “Using relational and equality operators”
on page 190.
About equality operators
The equality operators take two operands, compare their values, and return a Boolean value.
All of the operators in this table have equal precedence:
For information on using equality operators, see “Using relational and equality operators”
on page 190.
Operator Operation performed
<
Less than
>
Greater than
<=
Less than or equal to
>=
Greater than or equal to
instanceof
Checks prototype chain
in
Checks for object properties
Operator Operation performed
==
Equality
!=
Inequality
===
Strict equality
!==
Strict inequality