Operators
Operator precedence
Operators with higher precedence become the operands of operators with lower precedence.
- ex.
true || false && false
evaluates totrue
, because thefalse && false
is 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