Precedence* | Operator | Name | Category | Explained in video** |
---|---|---|---|---|
16 | () | round brackets | Lesson 36 | |
15 | ++ | post-increment | arithmetic | Lesson 202 |
15 | -- | post-decrement | arithmetic | Lesson 229 |
14 | ! | logical not | logical | Lesson 80 |
12 | * | multiplication | arithmetic | Lesson 32 |
12 | / | division | arithmetic | Lesson 32 |
12 | % | modulo | arithmetic | Lesson 40 |
11 | + | addition | arithmetic | Lesson 32 |
11 | - | subtraction | arithmetic | Lesson 32 |
11 | + | string concat | Lesson 61 | |
9 | < | less than | relational | Lesson 73 |
9 | <= | less than or equal | relational | Lesson 73 |
9 | > | greater than | relational | Lesson 73 |
9 | >= | greater than or equal | relational | Lesson 73 |
8 | == | equal to | relational | Lesson 25 |
8 | != | not equal | relational | Lesson 48 |
4 | && | logical and | logical | Lesson 72 |
3 | || | logical or | logical | Lesson 69 |
1 | = | assignment | assignment | Lesson 22 |