AND (&&) Operator in JavaScript
The AND operator (&&) is a logical operator in JavaScript that returns true if both operands (conditions) are true. If any operand is false, it returns false.
Syntax:
condition1 && condition2
If both condition1 and condition2 are true, the result is true.
If any condition is false, the result is false.
console.log(true && true); // true
console.log(true && false); // false
console.log(false && true); // false
console.log(false && false); // false