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?