help me in seek and destroy challenge
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
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 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, arguments, arguments etc into x
I hope that’s a sufficient hint. Good luck.
thank u, now i got the idea…and i have completed the challenge