Question: what is the difference between javascript objects and primitives?
Answer: Two objects will be only equal if they have same identity. It does not matter if they have same content or not. The fact can be determined by === operator. Primitives are compared by value, they don't have individual identities.