forked from M3-Academy/challenge-algorithms-v2.0
feat(sumEven): adiciona resolucao questao07-sumeven #7
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user