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

6 lines
141 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
let sums = 0;
values.forEach(item => sums += item);
return sums
}