+ 2
What is the difference between identical (===) and equal (==) operators?
4 ответов
+ 6
== same value
=== same value and type
+ 4
equal n strictly equal
+ 2
Using (==) only tests for value. No matter what type, it will be true if the values are equal. With (===), both values must be the same DATA TYPE to return true.
0
The = (assigment operator) , == and === (relational operator) please explain the diffenerce between these 3 operators in javascript;along with relevant examples.And what do we mean by type type conversion in===,please explain with example.And why does
3==='3'//false 3==="3"//false "3"==3//true 3===3//true
also why does
3==3//true "3"==3//true 3=='3'//true 1==true//true