| Level | Operators | Meaning | Associativity |
|---|
Operator precedence decides the order operations are applied when you write an expression without parentheses — for example, why 2 + 3 * 4 is 14 and not 20. Operators higher in this table bind more tightly and are evaluated first. Associativity decides direction when two operators share the same level: left-to-right means the leftmost is applied first, right-to-left the opposite. This table covers the common operators shared by C, Java, JavaScript and Python, ordered from highest to lowest priority.
Exact precedence differs slightly between languages, so when in doubt add parentheses to make intent explicit and code readable. Type in the search box to filter by an operator symbol (like &&) or a keyword (like "logical"). Everything runs locally in your browser.