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

8 lines
144 B
JavaScript
Raw Normal View History

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