Seek and Destroy //code not working

Tell us what’s happening:

Your code so far

function destroyer(arr) {
  // Remove all the values
    return arr.filter(function(word){
     for(var i=1; i<arguments.length;i++){ 
          return false;   
      return true;

destroyer([1, 2, 3, 1, 2, 3], 2, 3);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0.

Link to the challenge:

Doesn’t arr.filter() include the values which are ‘truthy’? So, after checking if the word is equal to the arguments[i], and then setting return to false or true accordingly, shouldn’t the function return an array with the truthy values?

The code always returns true. What you might want to do is:

let returnValue = true

  for(let i = 1; i<arguments.length; i++) {
		if(word === arguments[i]) { returnValue = false }

return returnValue