Logical
Operator | Compatible types | Description |
---|---|---|
&& | Boolean | Performs a logical 'and' operation and returns the result:var y = true && false; |
| | | Boolean | Performs a logical 'or' operation and returns the result:var y = false |
! | Boolean | Performs a logical 'not' operation and returns the result:var x = ! true; |