challenge-algorithms-v2.0/06-sum/index.js

9 lines
143 B
JavaScript
Raw Permalink Normal View History

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