Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
I get the right answer, but its still not passing. when I console.log inputArr it returns three arrays, I believe thats why its not passing, but I dont know why its returning three arrays and why its not passing.
function frankenSplice(arr1, arr2, n) {
//copy the elements of the first array
//into the second array at the n position
let inputArr = arr2.slice('');
for(const item of arr1){
inputArr.splice(n,0,item)
console.log(inputArr)
n++
}
}
frankenSplice([1, 2, 3], [4, 5], 1);
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; CrOS aarch64 14469.41.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.57 Safari/537.36
Challenge: Slice and Splice
Link to the challenge: