const arr1 = [10, 20, [7, 9], 30, [2, 4, [15]], 80]; // const arr2 = *** // Here we make a copy of the array arr2[2][0] = 8; // We change the value in the copy array, it should not change in the original array. console.log(arr2[2][0]); // 8 console.log(arr1[2][0]); // Should be 7, not 8
console.log(arr1[2][0]);
outputs 7?