Answers for "5.3.1.3. Logical NOT¶"

0

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" */
Posted by: Guest on June-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language