Pregunta de entrevista de IBM

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

Respuesta de la entrevista

Anónimo

4 de jun de 2024

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