Yahoo interview question

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

Interview Answer

Anonymous

18 May 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.