PRACTICE / UNDERSTAND / REPEAT

JavaScript: Equality

Practice equality with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

15 questionsAnswers explainedFree · no login
Question 1 of 15
Equality · MCQQuestion link ↗

Which operator compares both value and type without coercion?

Choose one answer
Answer & explanation

Answer: ===

`===` is strict equality. `==` may coerce types; `=` assigns a value.