forked from M3-Academy/challenge-algorithms-v2.0
6 lines
141 B
JavaScript
6 lines
141 B
JavaScript
export function sum(values) {
|
|
// implementar logica aqui
|
|
let sums = 0;
|
|
values.forEach(item => sums += item);
|
|
return sums
|
|
} |