📜  javascript 空数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:02.247000             🧑  作者: Mango

代码示例6
var arr1 = ['a','b','c','d','e','f'];
var arr2 = arr1;  // Reference arr1 by another variable 
arr1 = [];
console.log(arr2); // Output ['a','b','c','d','e','f']