Slice and Splice doubt

Tell us what’s happening:
my output is correct for all the test cases but the code is not getting accepted.

Your code so far


function frankenSplice(arr1, arr2, n) {
 // It's alive. It's alive!
   //console.log(arr2.length)

 let temp=arr2.slice(0)
   console.log(temp)

 temp.splice(n,0,arr1)
 console.log(temp)
 return temp;
}

frankenSplice([1, 2, 3], [4, 5, 6], 1);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice

Close but not quite there yet.

You are adding in as an array. This is the returned value.

=> [ 4, [ 1, 2, 3 ], 5, 6 ]