Hello. I’m clearing all of the tests for this challenge except for the last one: 'The second array should remain the same after the function runs. ’ Could someone tell me how I might be able to fix my code?
function frankenSplice(arr1, arr2, n) {
for (let i = 0; i < arr1.length; i++) {
arr2.splice(n+i,0,arr1[i]);
}
return arr2;
}
frankenSplice([1, 2, 3], [4, 5, 6], 1);