JavaScript Operator Precedence
JavaScript Operators
The following table lists JavaScript operators, arranged in order of precedence from high to low. Operators with the same precedence are evaluated from left to right
| Operator | Description |
|---|---|
| .[ ] ( ) | Field access, array indexing, function calls and expression grouping |
| ++ – - ~ ! delete new typeof void | Unary operators, return data type, object creation, undefined values |
- / %|Multiply, divide, modulo
- +|Add, subtract, string concatenation « » »>|Bit shift < <= > >= instanceof|Less than, less than or equal, greater than, greater than or equal, whether instance of specific class == != === !==|Equal, not equal, strictly equal, not strictly equal & |Bitwise AND ^|Bitwise XOR | | Bitwise OR && |Logical AND || | Logical OR ?: |Conditional operator = OP=|Assignment, assignment operations (such as += and &=) , |Multiple calculations