febobo / web-interview

语音打卡社群维护的前端面试题库,包含不限于Vue面试题,React面试题,JS面试题,HTTP面试题,工程化面试题,CSS面试题,算法面试题,大厂面试题,高频面试题
https://vue3js.cn/interview
10.31k stars 1.63k forks source link

Update array.md 应该是 arr1[2][0] 而不是 arr1[1][0]。 #445

Open LofiSu opened 2 months ago

LofiSu commented 2 months ago

const arr1 = ['a', 'b', [1, 2]]; const arr2 = ['c']; const arr3 = [...arr1, ...arr2];

arr1[2][0] = 9999; // 修改 arr1 中的数组成员值 console.log(arr3); // 输出 ['a', 'b', [9999, 2], 'c']