Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created Apr 14, 2018
Embed
What would you like to do?
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