Created
January 28, 2016 19:01
-
-
Save trakhov/2f74f4a06d8785714f30 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
function sum(ary) { | |
var result = 0; | |
for (var i = 0; i < ary.length; i++) { | |
result += ary[i]; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment