Operator Precedence

This chapter describes the order in which the grammar should be parsed. The following table is ordered from highest (11) to lowest (1) precedence.

Precedence Type Associativity
11 Wrapped Expression
10 Member Expression left to right
Index Expression
Call Expression
New Expression
9 Unary Expression right to left
Async Expression
8 Exponentiation right to left
7 Multiplication left to right
Division
Remainder
6 Addition left to right
Subtraction
5 Less Than left to right
Greater Than
Less Than Or Equal
Greater Than Or Equal
Instanceof Expression
4 Equality left to right
Inequality
3 and left to right
2 or left to right
1 Assignment Expression