Why do the last ==
and ===
operators return true here?
var object1 = {value: 10};
var object2 = object1;
alert(object1 == object2); // result makes sense
object2.otherValue = 15;
alert(object1 == object2); // doesn't make intuitive sense to me
alert(object1 === object2); // neither does this