challenge-algorithms-v2.0-n.../06-sum/index.js
2022-10-28 08:49:07 -03:00

9 lines
168 B
JavaScript

export function sum(values) {
// implementar logica aqui
let sumArr = 0
for (let i = 0; i < values.length; i++){
sumArr += values[i];
}
return sumArr;
}