Basic Algorithm Scripting: Slice and Splice: question why is this wrong

link to Challenge : https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice

Can someone please explain me why my code is wrong ? I dont get it . Thank you in advance


function frankenSplice(arr1, arr2, n) {
  var copyArrayTwo = arr2.slice();
  copyArrayTwo.splice(n,0, arr1);
  return copyArrayTwo;
}

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

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

You are returning a multi-dimensional array. This challenge expects a one-dimensional array.