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

9 lines
168 B
JavaScript
Raw Permalink Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-28 11:49:07 +00:00
let sumArr = 0
for (let i = 0; i < values.length; i++){
sumArr += values[i];
}
return sumArr;
}