Demo entry 6635884



Submitted by Daniel on Aug 22, 2017 at 08:10
Language: JavaScript. Code size: 452 Bytes.

function destroyer(arr) {
//This function removes all the values
//arr is the first array
  arr = arguments[0];

  //rest of the element in an array
  var rest = [];
//makes a rest array with the rest of the arguments
  for (i=1;i< arguments.length ;i++){
//u still need to chop the repeated stuff 

return arr.indexOf(2);
}//ends function destroyer()

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

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).