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 || true; |
! | Boolean |
Performs a logical ‘not’ operation and returns the result: var x = ! true; |
Logical
- Updated
Comments
0 comments
Please sign in to leave a comment.