I think my code is good, but I get error message: All elements from the first array should be added to the second array in their original order. Why? Thank you
**Your code so far**
function frankenSplice(arr1, arr2, n) {
let arr3 = [];
for (let i = 0; i < arr2.length; i++) {
if (i == n) {
for (let j = 0; j < arr1.length; j++) {
arr3.push(arr1[j]);
}
arr3.push(arr2[i]);
} else {
arr3.push(arr2[i]);
}
}
return arr3;
}
frankenSplice([1, 2, 3], [4, 5, 6], 1);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
.
Challenge: Slice and Splice
Link to the challenge: