feat: criação da resposta do 06-sum

This commit is contained in:
Matheus Mariosa 2022-11-02 12:30:35 -03:00
parent 4f1db060f4
commit c2815674bc

View File

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