feat(home):resolucao da questao 7

This commit is contained in:
Edna Barboza de Lima 2022-10-28 09:10:49 -03:00
parent 16d78802e2
commit 070e878391

View File

@ -1,4 +1,12 @@
export function sumEven(value) {
// implementar logica aqui
let inicio = 0
for(let i=0; i< value.length; i++){
if(value[i] % 2 === 0){
inicio = inicio + value[i]
}
}
return inicio
}