What will be the output of the following code?
const arr = [1, 2, 3];
const copied = [...arr];
copied.push(4);
console.log(arr.length);
What will be the output of the following code?
const arr = [1, 2, 3];
const copied = [...arr];
copied.push(4);
console.log(arr.length);