Pregunta de entrevista de SAQAYA

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

Respuesta de la entrevista

Anónimo

29 jul 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.