Operator precedence includes unary, increment, basic arithmetic, logical and assignment operators - roughly in that order.
The precedence can be remembered by BEUDMASLAS.
- unary & prefixed increment / decrement
- suffixed increment / decrement
Not quite exciting as BODMAS or PEDMAS (math, anyone?) and as it turns out - you would not even have to remember it :).
An outline with examples is below.
||Two brackets to rule them all||
|Unary & friends||
||Unary operators, pre increment/decrement||
||Binary arithmetic operations||
||Needs no explanation||
||Logical operators in order of precedence||
||Let there be assignment (at the end)|
||Changed value available to next operation||
Golden rule: put brackets whenever in doubt.
Priceless rule: Use prettier (and you should). It will automatically put brackets to clarify precedence and make the expression readable.
Let us look at some examples -