feat: resolve sum
This commit is contained in:
parent
0cd09a0455
commit
2089a82616
@ -1,4 +1,9 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let sumArr = 0
|
||||
for (let i = 0; i < values.length; i++){
|
||||
sumArr += values[i];
|
||||
}
|
||||
return sumArr;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user