Skip to content

Instantly share code, notes, and snippets.

@Narshe1412
Forked from anonymous/bonfire-slasher-flick.js
Created December 3, 2015 22:38
Show Gist options
  • Save Narshe1412/69104694f9392ca41a0b to your computer and use it in GitHub Desktop.
Save Narshe1412/69104694f9392ca41a0b to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/narshe1412 's solution for Bonfire: Slasher Flick
// Bonfire: Slasher Flick
// Author: @narshe1412
// Challenge: http://www.freecodecamp.com/challenges/bonfire-slasher-flick
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function slasher(arr, howMany) {
// it doesn't always pay to be first
arr.splice(0,howMany);
return arr;
}
slasher([1, 2, 3], 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment