Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Logical Operators:-

                Logical Operators का use वहां पर किया जाता है जहाँ पर आपको एक साथ बहुत सी condition को check करना होता है। logical operator के द्वारा logic को perform किया जाता है इन operators को control statement में प्रयोग किया जाता है

 

Logical Operators:-

                 Logical Operators are used where you have to check many conditions simultaneously. Logic is performed by logical operators. These operators are used in control statements.

 

Operator

Meaning

Example

Result

&&

AND

(10>5) && (15>20)

False

||

OR

(10>5) || (20>25)

True

!

NOT

!(10<5)

True

 

or (||) operator condition

condition1

condition2

result

True

true

true

True

false

true

False

true

true

False

false

false

 

and (&&) operator condition         

condition1

condition2

Result

True

True

True

True

False

False

False

True

False

False

False

False

 

Not(!) operator

Condition

Result

True

False

False

True

error: Content is protected !!