|
Operator | Description | Precedence |
() | Parentheses | 0 |
+ | Unary plus | 1 |
- | Unary minus | 1 |
++ | Increment | 1 |
-- | Decrement | 1 |
! | Not | 1 |
* | Multiply | 2 |
/ | Divide | 2 |
+ | Add | 3 |
- | Subtract | 3 |
< | Less than | 4 |
<= | Less than or equal | 4 |
> | Greater than | 4 |
>= | Greater than or equal | 4 |
== | Equal to | 5 |
!= | Not equal to | 5 |
&& | Logical AND | 6 |
|| | Logical OR | 7 |
= | Assignment | 8 |
var | Declaration | 9 |
if | If | 9 |
|