Merge pull request 'feat(sum): cria funcao que soma elementos de um array' (#6) from feature/sum into master

Reviewed-on: #6
This commit is contained in:
ViniciusDeniz 2022-11-02 22:09:57 +00:00
commit c4cb3bfb19

View File

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