Skip to content

Instantly share code, notes, and snippets.

@twhite96
Created June 18, 2016 22:45
Show Gist options
  • Save twhite96/4b1136d24fc1d7426e66cfbe1e816d8a to your computer and use it in GitHub Desktop.
Save twhite96/4b1136d24fc1d7426e66cfbe1e816d8a to your computer and use it in GitHub Desktop.
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment