O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

When we test equality of two object variables, we compare the references to those objects

Remember, variables hold references to objects, and so whenever we compare two objects, we’re comparing object references.

image with no caption

From

Cover of Head First JavaScript Programming

Note

When does equality operand return true comparing two objects?