Using Logical Operators in Javascript


Combine conditions using && (and), || (or), and ! (not) operators.

Source Code

let age = 20;
console.log(age > 18 && age < 30); // true
console.log(age  65); // false
console.log(!false); // true
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments