Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
total = 0
for num in [1..5000]
total += num
console.log total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment