challenge-algorithms-v2.0-c.../06-sum/index.js
2022-10-28 16:07:47 -03:00

8 lines
144 B
JavaScript

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