Why objects are not equal in JS?

As from The Definitive Guide to Javascript. Objects are not compared by value : two objects are not equal even if they have the same properties and values. This is true of arrays too: even if they have the same values in the same order.

Sizin İçin Seçtik  Do strings use .equals or ==?

Leave a Reply

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