Merge pull request 'feat(sum): implementa funcao sum' (#6) from feature/sum into development

Reviewed-on: #6
This commit is contained in:
DaviKlein 2022-10-28 22:10:27 +00:00
commit 2267be9421

View File

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