Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Logical Operators in JavaScript.

1 . Logical AND ( && ) :- In this operator, it returns a TRUE value only when both the conditions are true else it returns FALSE. See the below image for understanding better.

Example :-
1. ( 5>2 ) && ( 6<8 ) – True
2. ( 5<2 ) && ( 5>3 ) – False
3. ( 5>2 ) && ( 5<3 ) – False
4. ( 5<2 ) && ( 5<3 ) – False

2 . Logical OR ( || ) :- In this operator, it returns a TRUE value if any Operand is true but, if both operands are false then it returns FALSE. See the below image for understanding better.

Example :-
1. ( 5>2 ) || ( 6<8 ) – True
2. ( 5<2 ) || ( 5>3 ) – True
3. ( 5>2 ) || ( 5<3 ) – True
4. ( 5<2 ) || ( 5<3 ) – False

3 . Logical NOT ( || ) :- In this operator, it returns a TRUE value if the condition is false and it returns FALSE if the condition is true. See the below image for understanding better.

Example :-
1. !( 5<2 ) – True
2. !( 5>2 ) – False

Video Reference

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.