feat(sum):adiciona resolucao questao06-sum #6

Merged
carloswinter merged 1 commits from feature/sum into development 2022-10-28 19:08:27 +00:00

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