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.