JavaScript Comparison and Logical Operators
== is equal to
!= is not equal to\
=== to same hi h bs isme ham agar string lagadege to false a jaiga otherwise true
!== not equal value and type
&& me hamari dono value same noni chaile like a = 5 b = 6 - a<b && a ==5 dono same h na
|| isme agar koi bhi 1 value true h to pura true ho jaiga else false
7 + 8 = 15
7 is operand
+ is operator and 15 is result
--------------------------------------------------------------------------------------------
---
let a = 5;
let b = 10;
console.log("a == b is", a == b)
console.log("a != b is", a != b)
console.log("a === b is", a === b)
console.log("a !== b is", a !== b)
Comments
Post a Comment