javascript console.log displays different values on same object code example Example: console.log object at current state console.log(JSON.parse(JSON.stringify(obj)));