Pilcrow Records

Scripter Javascript Tutorial

javascriptmusiclogicscripterbookexcerpttutorial

31 ! logical not

MDN: Operators: Logical NOT

The ! comparison tests whether the opposite of something is true. The ! comparison was already seen with the != not equal comparison.

60 != 60 // false
60 != 72 // true
!true // false
!false // true