feat: Resolvido questao sum #5

Merged
ThiagoDutraSampaioLeite merged 1 commits from feature/desafiodois into master 2022-10-28 19:59:33 +00:00

View File

@ -1,4 +1,8 @@
export function sum(values) {
// implementar logica aqui
}
let result = 0;
for (let i = 0; i < values.length; i++) {
result += values[i];
}
return result;
}