Can someone explain me the difference between “==” & “===” ???
I know the meaning of these but I’m still quite confused…
For example
"" == false // this is true
"" === false // this is false
The difference is that the equality operation does type coercion, the other not
"3" == 3 // this is true
"3" === 3 // this is false
I can only give examples, without a really in-depth explanation, but you can read more about it here:
YDKJS Book 1 Chapter 2 Comparing Values section
thanxx a lot…I’ll go through that book…