Created
April 14, 2018 15:03
-
-
Save vmussak/5ea46f66e4c3ef8ef48e2f60c0c6f757 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
var lstInt = [1, 2, 3, 4, 5]; | |
var soma = 0; | |
for(var i = 0; i < lstInt.length; i++) { | |
soma = soma + lstInt[i]; | |
} | |
console.log(soma); //15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment