JavaScript Operator Precedence
JavaScript Operators
The following table lists JavaScript operators, ordered from highest to lowest precedence. Operators with the same precedence are evaluated 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 value |
- / %|Multiplication, division, remainder
- +|Addition, subtraction, string concatenation « » »>|Shift < <= > >= instanceof|Less than, less than or equal, greater than, greater than or equal, instanceof == != === !==|Equality, inequality, strict equality, strict inequality & |Bitwise AND ^|Bitwise XOR | | Bitwise OR && |Logical AND || | Logical OR ?: |Conditional (ternary) = OP=|Assignment, compound assignment (e.g. += and &=) , |Multiple evaluation