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