feat: Soluciona o exercício 06 - Sum

This commit is contained in:
Eleonora Otz de Mendonça Soares 2022-10-28 16:27:13 -03:00
parent 1176d331b2
commit 104b003d48

View File

@ -1,4 +1,9 @@
export function sum(values) {
// implementar logica aqui
var sum = 0;
for(var i = 0; i < values.length; i++) {
sum += values[i];
}
return sum
}