Tell us what’s happening:
Your code so far
function destroyer(arr) {
// Remove all the values
return arr;
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
now if you return arr ; then it must give output as
[1,2,3,1,2,3],2,3
but it only give output as
[1,2,3,1,2,3]
why?
Your destroyer function as written accepts one argument an assigns the value to arr. In the example:
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
there are 3 arguments being supplied to the function, so you need to read about the arguments object to be able to work with all arguments passed into the function.