📅  最后修改于: 2022-03-11 15:01:20.038000             🧑  作者: Mango
var arr1 = [1, 2, 3, 4, 5, 6];var arr2 = arr1; // Reference arr1 by another variable arr1 = [];console.log(arr2); // Output [1, 2, 3, 4, 5, 6]