What is the precedence of the operators or calculation in an expression?
Which calculation or operation will be executed first division or addition?
| Precedence Order | Operator (Symbol) | Operator in Words |
| 1 | !, ++, --, ~ | Not, Increment, Decrement |
| 2 | *, /, %, +, - | Multiplication, Division, Modulus, Addition, Subtraction |
| 3 | << , >>, >>> | - |
| 4 | <, <=, >, >= | Less Than, Less than or equal to, Greater Than, Greater than or equal to |
| 5 | ==, !=, ===, !== | Equals Comparison, Not Equals, Strictly Equals, Strictly Not Equals |
| 6 | &, |, ^, &&, || | Bitwise AND, Bitwise OR, Bitwise Exclusive OR, Logical AND, Logical OR |
| 7 | ?: | Ternary Operator |
| 8 | Assignment Operators =, +=, -=, /=, *=, %=, <<=, >>=, >>>=, &=, ^= | Assign, other assignment operators |