Yahoo Interview Question

What is the difference between "==" & "==="?

Interview Answer

Anonymous

May 18, 2026

I explained that === checks for strict equality without type coercion, meaning both the value and the data type must match. In contrast, == is not strict and performs type coercion, converting the values to a common type before making the comparison.