I have this kind of construction
let a = {x: 1}
let b = a
a.x = a = {y: 2}
How you can explain in details how I get these results ?
a.x = undefined
a={y: 2}
b={x: {y: 2}}
I have this kind of construction
let a = {x: 1}
let b = a
a.x = a = {y: 2}
How you can explain in details how I get these results ?
a.x = undefined
a={y: 2}
b={x: {y: 2}}