feat(sum):adiciona resolucao questao06-sum

This commit is contained in:
carloswinter 2022-10-28 16:07:47 -03:00
parent 0d0ca5f86d
commit 309e130fd5

View File

@ -1,4 +1,8 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
let res=0;
values.forEach(element => {
res+=element;
});
return res;
} }