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


Cover of Head First JavaScript Programming


When does equality operand return true comparing two objects?