Skip to content

Instantly share code, notes, and snippets.

@wannabefro
Last active August 29, 2015 13:56
Show Gist options
  • Save wannabefro/9198697 to your computer and use it in GitHub Desktop.
Save wannabefro/9198697 to your computer and use it in GitHub Desktop.

starting with the array numbers = [1,2,3,4,5,6,7,8,9]

  • double every number in the array
  • return the max value of the array
  • return the sum of the array
  • return the average of the array
  • return only the even numbers from the array
  • return every number above 6 from the array
  • return an array with only the odd numbers doubled. i.e. [2,2,6,4,10,6,14,8,18]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment