Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

5.3.1.1. Logical AND¶

/*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
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Logical
ADD COMMENT
Topic
Name
4+7 =