Equality Operators Flashcards
1
Q
What is the strict equality operator?
A
=== This is the strict equality operator. It is strict because it does not perform type coercion. It only returns try when both values are exactly the same. 18 === 18 (true).
2
Q
What is the loose equality operator?
A
== This is the loose equality operator and it performs type coercion.
e.g ‘18’ == 18 (true).