Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, May 12, 2017

FreeCodeCamp Slasher Flick Sample Solution



function slasher(arr, howMany) {
  // it doesn't always pay to be first
  for(var i=0; i<howMany; i++){
    arr.shift();
  }
  return arr;
}

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

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts