Tell us what’s happening:
Hello everybody, it’s my first post in this community. I’m trying to complete this challenge but i didn’t know why this doesn’t work. Thank you for answer.
Your code so far
function frankenSplice(arr1, arr2, n) {
// It's alive. It's alive!
let localVar = arr2;
localVar.splice(n,n-n,...arr1);
return localVar;
}
console.log(frankenSplice(["claw", "tentacle"], ["head", "shoulders", "knees", "toes"], 2));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/slice-and-splice/