Help me in seek and destroy challenge

Help me in seek and destroy challenge
0

#1

help me in seek and destroy challenge


#2

Not that I can help but people will need a bit more information in order to help you… So what have you done so far? What’s the part that blocks you? What do you think your code is supposed to do?

That’s the typical questions you’ll get :wink:


#3

Hey
So I’m sure you know how to do it but are probably confused as to how to grab the arguments outside the array.
So in the function: arr is simply arguments[0] that is [1, 2, 3, 1, 2, 3].

The best practice is to grab arguments and put them in an array of their own
eg to grab all arguments do var x = Array.prototype.slice.call(arguments);
to grab from arguments[n] first
var x = Array.prototype.slice.call(arguments, 1) //this code pushes every arguments[1], arguments[2], arguments[3] etc into x

I hope that’s a sufficient hint. Good luck.


#4

thank u, now i got the idea…and i have completed the challenge