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