9 lines
166 B
JavaScript
9 lines
166 B
JavaScript
export function sum(values) {
|
|
// implementar logica aqui
|
|
let total = 0;
|
|
for (let i = 0; i < values.length; i++) {
|
|
total += values[i];
|
|
}
|
|
return total;
|
|
}
|