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