+ 1
What's difference in use between == and ===?
5 Answers
+ 2
== will return true if (5=5) or (5="5")
=== will return true if (5===5) but will return false if (5==="5") becoz 5 is a integer and "5" is string. they are equal but are not of same type.
=== is strict compression operator.
+ 1
"==" will return the argument to be true if another object have the same property or value while "===" will return an argument to be true if more than one object is being compared with the first operand.
+ 1
== defines only same value..But === defines not only same value but also same data type
0
5=='5' will return true
5==='5' will return false
0
one represents "equal". one represents "identical".