Operator | Description | Example | Result |
---|---|---|---|
&& | AND: true if both operands are true | true && true | true |
&& | Short-circuits on first falsy value | false && true | false |
| | | OR: true if at least one operand is true | true || false | true |
! | NOT: inverts the truthiness of the operand | !true | false |
! | Inverts the truthiness of the operand | !false | true |