Slice and Splice. All the test results are fine but still not passed the challenge

Tell us what’s happening:

Hi, so here I have tested all the provided examples, and it seems that there is nothing wrong with the algorithm, but I’m still not passing this challenge? I tried also concatenating, directly slice arr1 as a whole to paste, the results are all fine, but failed to pass just the same. can someone help me?

Your code so far


function frankenSplice(arr1, arr2, n) {
  let result = arr2.slice();
  for(let i = 0; i < arr1.length; i++){
    result.splice(n, 0, arr1[i]);
    n++;
  }
  console.log(result)
  return arr2;
}

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/73.0.3683.75 Safari/537.36.

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

Sorry guys, just noticed that I returned the wrong variable. problem solved, Thanks.