Using Logical Operators: &&, ||, ! in Javascript


Combine conditions and boolean values.

Source Code

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