Created
February 22, 2017 17:05
-
-
Save halan/cafe9f68f34e4549d3ada6473afa920f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let accumulator = 0; | |
for(let index = 0; index < collection.length; index++) { | |
accumulator = // get current accumulator and collection[index] and do some calculation | |
} | |
return accumlator; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment