Tell us what’s happening:
Hi guys,i write console.log at the end for arr2 and i see the same original value on VS …why does the website refuse the answer ??
Your code so far
function frankenSplice(arr1, arr2, n) {
let arr3=arr2.splice(n,arr2.length)
let arr4=arr2.concat(arr1)
arr2=arr2.concat(arr3)
return arr4.concat(arr3)
}
frankenSplice([1, 2, 3], [4, 5, 6], 1);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice