twhite96
6/18/2016 - 10:45 PM

Slasher Flick Free Code Camp Algorithm

Slasher Flick Free Code Camp Algorithm

function slasher(arr, howMany) {
  // it doesn't always pay to be first
  arr.splice(0, howMany);
  return arr;
}

slasher(["burgers", "fries", "shake"], 1);