+ 1
I don’t understand the difference between == and ===. Also != and !==
3 Respostas
+ 4
The difference is:
two == are checking if value a is equal to value b
three === are checking type too so if values are equal for eg. both have value 5 then program will check if they are both int or double...
!= and !== are working on similar way they are just checking if values are different
+ 1
== is the "equal to" operator which tests for equality while != is the "not equal to" operator while === and !== are comparison operators