Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Logical Operators in JavaScript

// logical AND
console.log(true && true); // true
console.log(true && false); // false

// logical OR
console.log(true || false); // true

// logical NOT
console.log(!true); // false
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Logical #Operators #JavaScript
ADD COMMENT
Topic
Name
8+1 =