what is the reason for the emergence of the two results?
var arrs = [{ x: 1 }];
console.log(arrs); // [{ x: 2 }]
arrs[0].x = 2;
console.log(arrs);// [{ x: 2 }]
console.log(arrs)
[{x: 2}]
var arrs2 = [{ x: 1 }];
console.log(arrs2[0].x); // 1
arrs2[0].x = 2;
console.log(arrs2[0].x);// 2