const obj = {
arr: [{ x: 17 }]
};
/**
* z -> it is only reference to original object (const obj in our case).
* It is like another door to the same room
*/
let z = obj.arr;
/*
* now z -> points to other value (array), but previous still exist
*/
z = [{ x: 25 }];
console.log(obj.arr[0].x);