feat: Implementa Desafio 2.6

This commit is contained in:
Sabrina Miranda 2022-10-28 19:22:35 -03:00
parent 816278d712
commit 65a042e80b

View File

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