Hello world!in this problem we are given two arguments.The first-one gives us all numbers and the second one tells us which ones not to destroy(delete).


so in instructions it tells us to use arguments object.we should use arguments object in variable ,that defines arguments and it tells us what not to delete.That looks like this:

this variable selects object(function) with arguments ,it slices first argument and in this case valsToRemove variable holds value of 2 and 3.

Now create variable result and set it equal to arr.filter().

so what filter does is that it passes argument (item).then we use include() function that checks if item is or isn’t in valsToRemove variable.If it isn’t in it, then it returns true and adds to result.

Now there’s nothing left for us but to return result.


Follow for more.Bye!