In JavaScript, two objects cannot be equal even though they are similar in JavaSCript. In the case of objects, you are comparing the references (the addresses) and not the exact values.
Table of contents
Primitive and Reference ValuesComparing Primitive and Reference ValuesHow to compare objectsWrap up11 Comments
Sort: