Created
September 1, 2008 18:53
-
-
Save subtleGradient/8331 to your computer and use it in GitHub Desktop.
Complete list of js operators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Precedence Operator type Associativity Proximity */ //Individual operators ; | |
| /* 1 member left-to-right both */ a . b ; | |
| /* 1 member left-to-right inside + left */ a [ b ] ; | |
| /* 1 new right-to-left right */ new b ; | |
| /* 2 function-call left-to-right inside + left */ a ( b ) ; | |
| /* 3 decrement n/a right-or-left */ -- b ; | |
| /* 3 decrement n/a right-or-left */ a -- ; | |
| /* 3 increment n/a right-or-left */ ++ b ; | |
| /* 3 increment n/a right-or-left */ a ++ ; | |
| /* 4 bitwise-not right-to-left right */ ~ b ; | |
| /* 4 delete right-to-left right */ delete b ; | |
| /* 4 logical-not right-to-left right */ ! b ; | |
| /* 4 typeof right-to-left right */ typeof b ; | |
| /* 4 unary-+ right-to-left right */ + b ; | |
| /* 4 unary-negation right-to-left right */ - b ; | |
| /* 4 void right-to-left right */ void b ; | |
| /* 5 division left-to-right both */ a / b ; | |
| /* 5 modulus left-to-right both */ a % b ; | |
| /* 5 multiplication left-to-right both */ a * b ; | |
| /* 6 addition left-to-right both */ a + b ; | |
| /* 6 subtraction left-to-right both */ a - b ; | |
| /* 7 bitwise-shift left-to-right both */ a << b ; | |
| /* 7 bitwise-shift left-to-right both */ a >> b ; | |
| /* 7 bitwise-shift left-to-right both */ a >>> b ; | |
| /* 8 in left-to-right both */ a in b ; | |
| /* 8 instanceof left-to-right both */ a instanceof b ; | |
| /* 8 relational left-to-right both */ a < b ; | |
| /* 8 relational left-to-right both */ a > b ; | |
| /* 8 relational left-to-right both */ a <= b ; | |
| /* 8 relational left-to-right both */ a >= b ; | |
| /* 9 equality left-to-right both */ a != b ; | |
| /* 9 equality left-to-right both */ a == b ; | |
| /* 9 equality left-to-right both */ a !== b ; | |
| /* 9 equality left-to-right both */ a === b ; | |
| /* 10 bitwise-and left-to-right both */ a & b ; | |
| /* 11 bitwise-xor left-to-right both */ a ^ b ; | |
| /* 12 bitwise-or left-to-right both */ a | b ; | |
| /* 13 logical-and left-to-right both */ a && b ; | |
| /* 14 logical-or left-to-right both */ a || b ; | |
| /* 15 conditional right-to-left both */ a ? b : c ; | |
| /* 16 assignment right-to-left both */ a = b ; | |
| /* 16 assignment right-to-left both */ a %= b ; | |
| /* 16 assignment right-to-left both */ a &= b ; | |
| /* 16 assignment right-to-left both */ a *= b ; | |
| /* 16 assignment right-to-left both */ a += b ; | |
| /* 16 assignment right-to-left both */ a -= b ; | |
| /* 16 assignment right-to-left both */ a /= b ; | |
| /* 16 assignment right-to-left both */ a ^= b ; | |
| /* 16 assignment right-to-left both */ a |= b ; | |
| /* 16 assignment right-to-left both */ a <<= b ; | |
| /* 16 assignment right-to-left both */ a >>= b ; | |
| /* 16 assignment right-to-left both */ a >>>= b ; | |
| /* 17 comma left-to-right both */ a , b ; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment