Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save snowman-repos/8840356 to your computer and use it in GitHub Desktop.
Save snowman-repos/8840356 to your computer and use it in GitHub Desktop.
Generate an array of numbers with numbers from 0 to max
numbersArray = []
max = 100
i = 1 # numbers = [1,2,3 ... 100]
while numbersArray.push(i++) < max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment