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