IBM Interview Question

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

Interview Answer

Anonymous

Jun 4, 2024

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