Comparison Operators Flashcards

1
Q

Whats the difference between using the double equals == and the tripe ===

A

The triple equals will check whether the value and the data type matches, whereas the double will check just value. So 1 === ‘1’ will equal false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly