Tell us what’s happening:
my code is returning the correct results, however the test keeps failing, idw why, thank you
Your code so far
function frankenSplice(arr1, arr2, n) {
// It's alive. It's alive!
let arr = arr2.slice(0, n);
let arr22 = arr2.slice(n, arr2.length);
for (let i= 0; i< arr1.length; i++) {
arr.push(arr1[i]);
}
arr.push(arr22);
console.log(arr);
return arr;
}
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/76.0.3809.132 Safari/537.36
.
Link to the challenge: