Logical operators are used to combine or invert boolean values. They always return true or false.
&& AND - returns true if both operands are true|| OR - returns true if at least one operand is true! NOT - inverts the boolean value
let a = true;
let b = false;
console.log(a && b); // false
console.log(a || b); // true
console.log(!a); // false
Click the button to see logical operators in action: