feat: resolve sum

This commit is contained in:
Naian Felix dos Santos 2022-10-28 08:49:07 -03:00
parent 0cd09a0455
commit 2089a82616

View File

@ -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;
}