Question d’entretien chez IBM

What is the difference between == and === in JavaScript?

Réponse à la question d'entretien

Utilisateur anonyme

4 juin 2024

== (loose equality) compares values after type coercion. === (strict equality) compares values without type coercion (checks both value and type).