9 lines
168 B
JavaScript
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;
|
|
|
|
} |