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
 
PREVIOUS NEXT
Tagged: #Logical #Operators #JavaScript
ADD COMMENT
Topic
Name
1+6 =