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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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).

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