forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'feature/sumeven' into development
This commit is contained in:
commit
3e952ba59d
@ -1,4 +1,8 @@
|
||||
export function sumEven(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
value.forEach(element => {
|
||||
if(element % 2 === 0)
|
||||
resposta += element
|
||||
});
|
||||
return resposta;
|
||||
}
|
Loading…
Reference in New Issue
Block a user