Tell us what’s happening:
This solution works as far as I can tell but wont actually accept it. Is there something I am missing?
Your code so far
function frankenSplice(arr1, arr2, n) {
var arr3 = [];
arr3 = arr2.slice();
arr3.splice(n,0,arr1);
console.log(arr3);
return arr3;
}
frankenSplice([1, 2, 3], [4, 5], 1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice/