feat(sumEven): adiciona resolucao questao07-sumeven

This commit is contained in:
carloswinter 2022-10-28 16:10:35 -03:00
parent 060760803f
commit 2e4a5caf0a

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