Assignment Operators

Arithmetic Operators

Bitwise Operators

These convert operand(s) to 32 bits and then perform work on them. In the examples provided, the binary is shown instead of the decimal, for the sake of visual clarity.

Logical Operators

These are typically used with Boolean operands to return Boolean values but after JS 1.1, these operators can also be used to return one of the operands. This "fancy" feature makes the order of operands relevant!

Comparison Operators

NaN is not equal to anything, including NaN. Null and Undefined are equal.

String Operators

Other Operators

Operator Precedence

From low to high:

2008-04-30 21:12:20Z