+ 3

what is the diference between === and ==?

Which is better to be used?

20th Nov 2018, 3:29 AM
FastLearner
FastLearner - avatar
2 odpowiedzi
+ 1
When you use === it matches the value and type while == only the value. Example 77 == '77' is true while if you try 77 === '77' would return false
20th Nov 2018, 3:48 AM
Mike