Tridhya Tech interview question

What is the difference between == and === in JavaScript, and when should you use each?

Interview Answer

Anonymous

10 Aug 2025

In JavaScript: == (loose equality) → Compares values after type conversion (performs type coercion). === (strict equality) → Compares both value and type without type conversion.