Comparing Two Objects in Javascript

You can compare two objects in Javascript to make sure there refer to the same instance

You can see following output in browser console
>Are these equal? false

In this example, I am creating two objects with same property but they are not equal.

Leave a Reply

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