User Guide

Operators 83
Relational operators
The relational operators take two operands, compare their values, and return a Boolean value.
All the relational operators, as listed in the following table, have equal precedence:
Equality operators
The equality operators take two operands, compare their values, and return a Boolean value.
All the equality operators, as listed in the following table, have equal precedence:
Bitwise logical operators
The bitwise logical operators take two operands and perform bit-level logical operations. The
bitwise logical operators differ in precedence and are listed in the following table in order of
decreasing precedence:
Operator Operation performed
<
Less than
>
Greater than
<=
Less than or equal to
>=
Greater than or equal to
as
Checks data type
in
Checks for object properties
instanceof
Checks prototype chain
is
Checks data type
Operator Operation performed
==
Equality
!=
Inequality
===
Strict equality
!==
Strict inequality
Operator Operation performed
&
Bitwise AND
^
Bitwise XOR
|
Bitwise OR