Tell us what’s happening:
the code give incorrect result i try to use includes but im still stuck help me please
Your code so far
function destroyer(arr) {
let args=[...arguments]
let d
for (var i=1;i<args.length;i++ ){
d=arr.filter(elemnt=>elemnt!=args[i])
}
return d;
}
destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:77.0) Gecko/20100101 Firefox/77.0
.
Challenge: Seek and Destroy
Link to the challenge: