8 lines
156 B
JavaScript
8 lines
156 B
JavaScript
export function sum(values) {
|
|
// implementar logica aqui
|
|
let add = 0
|
|
for (let p = 0; p < values.length; p++) {
|
|
add += values[p]
|
|
}
|
|
return add
|
|
} |