Operator Summary (JavaScript)

The following tables list JavaScript operators in their respective categories.

Computational Operators

Operator Symbol
Addition +
Decrement --
Division /
Increment ++
Modulus %
Multiplication *
Subtraction -
Unary negation -

Logical Operators

Operator Symbol
Comma ,
Conditional (Ternary) ?:
Equality ==
Greater than >
Greater than or equal to >=
Identity ===
Inequality !=
Less than <
Less than or equal to <=
Logical AND &&
Logical NOT !
Logical Or ||
Nonidentity !==

Bitwise Operators

Operator Symbol
Bitwise AND &
Bitwise Left Shift <<
Bitwise NOT ~
Bitwise Or |
Bitwise Right Shift >>
Bitwise XOR ^
Unsigned Right Shift >>>

Assignment Operators

Assignment Operators

Compound Assignment Operators

Miscellaneous Operators

delete

instanceof

new

typeof

void

Requirements

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1). See Version Information.