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

9 lines
141 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
let soma = 0;
2022-11-08 20:25:44 +00:00
for (i in values) {
soma += values[i];
}
return soma;
}