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

Relational Operators:-

                   comparison operator left side की operand से right side की operand को compare करती है और result में true या false बताती है | relational operators के द्वारा आप 2 variable की values को compare कर सकते है ये operators ज्यादातर control statement में प्रयोग होते है जब आप कोई logic build करने की कोशिश करते है तो जैसे की कौन सा variable  बड़ा या छोटा है

 

Operator

Meaning

Example

Result

less than

50<10

False

greater than

50>10

True

<=

less than or equal to

50<=10

False

>=

greater than or equal to

50>=10

True

==

Is equal to

50==10

False

!=

Is not equal to

10!=20

True

===

Identical (equal value and same type)

10===10

True

10===”10”

False

!==

Not Identical (Not equal value and not same type)

10!==10

False

10!==”10”

True

 

 

Relational Operators:-

                  The comparison operator compares the operand of the left side with the operand of the right side and returns true or false in the result. Through relational operators, you can compare the values of 2 variables. These operators are mostly used in control statements when you try to build any logic, such as which variable is bigger or smaller.

Operator

Meaning

Example

Result

less than

50<10

False

greater than

50>10

True

<=

less than or equal to

50<=10

False

>=

greater than or equal to

50>=10

True

==

Is equal to

50==10

False

!=

Is not equal to

10!=20

True

===

Identical (equal value and same type)

10===10

True

10===”10”

False

!==

Not Identical (Not equal value and not same type)

10!==10

False

10!==”10”

True

error: Content is protected !!