Tell us what’s happening:
I got what needs to be done, but I’m confused about how the end result should be formatted.
Your code so far
function frankenSplice(arr1, arr2, n) {
arr2 = [...arr1];
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/131.0.0.0 Safari/537.36
Challenge Information:
Basic Algorithm Scripting - Slice and Splice