-
Notifications
You must be signed in to change notification settings - Fork 3
Operator Precedence
rodyhaddad edited this page Jan 6, 2014
·
4 revisions
The following table is ordered from highest (1) to lowest (13) precedence.
Precedence | Individual Operator | Additional Notes |
---|---|---|
1 |
. , [] , ()
|
Property access & function call |
2 | ! |
|
3 |
^ , &
|
|
4 |
* , / , %
|
|
5 |
+ , -
|
|
6 |
< , > , <= , >=
|
|
7 |
== , != , === , !==
|
|
8 | && |
|
9 | double pipe* |
|
10 | ?: |
Ternary operator |
11 | = |
Assignement |
12 | pipe** |
Filter (not bitwise operator!) |
13 | ; |
Expression can currently have multiple statements |
* ||
** |
pipes are used for generating tables in markdown, so couldn't put them in the table