What is the difference between == and === while comparing objects?

The difference between == and === is that: == converts the variable values to the same type before performing comparison . This is called type coercion. === does not do any type conversion (coercion) and returns true only if both values and types are identical for the two variables being compared.

Sizin İçin Seçtik  How do you know if two objects are equal?

Leave a Reply

Your email address will not be published. Required fields are marked *