📜  5.3.1.1.逻辑与¶ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:44.837000             🧑  作者: Mango

代码示例1
/*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