feat(sum) Implementacao da funcao sum()

This commit is contained in:
Wellington Duarte Santos 2022-11-01 09:18:36 -03:00
parent 335d584521
commit 1d78e7e7fe

View File

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