Merge pull request 'feat(home):resolucao da questao 7' (#7) from feature/exercicio7 into development

Reviewed-on: #7
This commit is contained in:
Edna Barboza de Lima 2022-10-28 12:12:04 +00:00
commit b377f7a9d6

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
}