JavaScript : Logical Operators
- And Operator: & &
- Or Operator: ||
- Not Operator: !
And Operator: & &
The logical AND operator ( & &) returns true if the expression to the both sides of the operator evaluates to true.
Or Operator:
The logical OR operator returns false if the expression to the both sides of the operator evaluates to false.
Not Operator: !
If the expression evaluates to true, the result of the logical NOT operator (!) is false. If the expression evaluates to false, the result is true.