Tell us what’s happening:
I’m not passing the challenge entirely. Please point out what I can improve without giving away anything. Thanks
Your code so far
function destroyer(arr) {
for (var i = 0; i < arr.length; i++) {
for (var j = 1; j < arguments.length; j++) {
if (arr[i] === arguments[j]) {
arr.splice(i, 1);
}
}
}
return arr;
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Link to the challenge: