Pilcrow Records

Scripter Javascript Tutorial

javascriptmusiclogicscripterbookexcerpttutorial

29 && logical and

MDN: Operators: Logical AND

The && comparison requires all comparisons to be true for it to be true. Another way to read the && comparison is that it will find the first false result.

60 == 60 && 72 == 72 // true && true = true
60 == 60 && 60 == 72 // true && false = false
60 == 72 && 60 == 60 // false && true = false
60 == 72 && 60 == 59 // false && false = false