Operators
Operator precedence
Operators with higher precedence become the operands of operators with lower precedence.
- ex.
true || false && falseevaluates totrue, because thefalse && falseis evaluated first, which returnsfalse, which is then used as the operand for the original expression:true || false, which evaluates totrue
Use parentheses (()) to alter precedence
Children