LEARNING JAVASCRIPT - Trang 347

Precedence Operator type

Associativity Individual operators

9

Bitwise AND

left to right

&

8

Bitwise XOR

left to right

^

7

Bitwise OR

left to right

|

6

Logical AND

left to right

&&

5

Logical OR

left to right

||

4

Conditional

right to left

?

:

3

Assignment

right to left

=

+=

-=

*=

/=

%=

<<=

>>=

>>>=

&=

^=

|=

2

yield

right to left

yield

1

Spread

n/a

0

Comma/sequence

left to right

,

Operator Precedence | 323