Slice and Splice(Problem)

function frankenSplice(arr1, arr2, n) {
  // It's alive. It's alive!
  let Arr1 = arr1;
  let Arr2 = arr2;
  let length = Arr1.length;
  let index = n;
  let sliced = Arr1.slice(0,);
  let spliced = Arr2.splice(index,);
  //console.log(spliced);
  //console.log(Arr2);
  Arr2.push(sliced);
  //console.log(Arr2);
  Arr2.push(spliced);
  //console.log(Arr2);
  return arr2;
}

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

The output is the same as the test cases,but not passing them.

I suggest looking at your code using this tool: http://pythontutor.com/javascript.html

splice method changes the original array , they dont want you to change it , this is what means
The input arrays should remain the same after the function runs.
I solved this problem using for loop and only splice method and also I used spread operator to copy arr2 because I want to add to it the first array elements in order so it should not be changed because splice method changes it .

Your code changes arr2 because doing Arr2 = arr2 doesn’t copy it, you need to use concat, slice or spread operator. Also, look at your return statement.