+ 1
What is the difference between == and ===
not able to differentiate
2 odpowiedzi
+ 6
== means equal value.
But
=== means equal value and equal type.
+ 3
One of their differences is that == just check if the values are the same but the === check if their have the same data type too.
Example
If(1 == '1') // this is true
If(1 === '1') // this is false