feat(sumEven): adiciona resolucao questao07-sumeven #7

Merged
carloswinter merged 1 commits from feature/sumEven into development 2022-10-28 19:11:19 +00:00

View File

@ -1,4 +1,9 @@
export function sumEven(value) {
// implementar logica aqui
let res=0;
value.forEach(element => {
if(element % 2 === 0)
res+=element;
});
return res;
}