The address stored in obj changes. The first object is still present in memory, and so is the next object:
If they’re distinct objects, even if they contain identical properties, the comparison will result in false.
…the equality operators, == and ===, are used on reference-type variables, they check the reference. If the variables contain a reference to the same item, the comparison will result in true.