Favorites

JavaScript Operators Reference

Operators combine or change values to produce a new value, such as adding two numbers with +, comparing them with === or giving a default with ??. Some operators are symbols, others are keywords such as typeof and new.

When an expression contains several operators, precedence decides which runs first, and associativity decides the order for operators with the same precedence. Each page lists both. Use parentheses whenever the order isn't obvious.

At the time of writing, there are 55 operators listed here.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee