What is the difference between == and === in JavaScript?
Question :
What is the difference between == and === in JavaScript?
== performs loose equality comparison, allowing type coercion. It checks if the values are equal after converting them to a common type.
=== performs strict equality comparison, without type coercion. It checks if the values are equal and of the same type.