Created
June 18, 2016 22:45
-
-
Save twhite96/4b1136d24fc1d7426e66cfbe1e816d8a to your computer and use it in GitHub Desktop.
Slasher Flick Free Code Camp Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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