Good afternoon, I have this little program:
let oi=[1,2,3,4]
let xau=[]
xau=oi
xau[2]=7
console.log(oi)
My problem is that when in the console the output is:
[1,2,7,4]
According to what I understand, xau should be a new instance th...
asked by
06.03.2018 / 19:50