Question d’entretien chez SAQAYA

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

Réponse à la question d'entretien

Utilisateur anonyme

29 juil. 2025

== is the loose equality operator, which compares two values for equality after converting them to a common type (type coercion). === is the strict equality operator, which checks for equality without type conversion – both the value and the type must be the same.