Hello. I have no clue why the console is showing undefined
after the last number from the first array.
function frankenSplice(arr1, arr2, n) {
for(let i = arr1.length; i > -1; i--) {
arr2.splice(n, 0, arr1[i])
};
console.log(arr2)
return arr2;
};
frankenSplice([1, 2, 3], [4, 5, 6], 1);