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

8 lines
156 B
JavaScript
Raw Normal View History

export function sum(values) {
// implementar logica aqui
2022-10-27 20:29:05 +00:00
let add = 0
for (let p = 0; p < values.length; p++) {
add += values[p]
}
return add
}