/*The operator takes two operands, and the resulting expression is
true if both operands are true individually. If either operand is
false, the overall expression is false.*/
console.log(7 > 5 && 5 > 3);
console.log(7 > 5 && 2 > 3);
console.log(2 > 3 && 'dog' === 'cat');
//true
//false
//false
/*JavaScript's logical OR operator, ||, also creates compound boolean
expressions. This operator takes two operands, and the resulting
expression is true if either of the operands are true individually.
If both operands are false, the overall expression is false.*/
console.log(7 > 5 || 5 > 3);
console.log(7 > 5 || 2 > 3);
console.log(2 > 3 || 'dog' === 'cat');
//true
//true
//false