5.3.1.3. Logical NOT¶
/*The logical NOT operator, !, takes only a single operand and reverses its boolean value.*/ console.log(! true); console.log(! false); //false //true console.log( !(5 > 7) ); console.log( !('dog' === 'cat') ); //true //false /*The operator ! (sometimes called "bang") has the same semantic role as the word "not" in English. -Big Bang Theory // "BANG" */