Merge pull request 'feat(home):resolucao da questao 7' (#7) from feature/exercicio7 into development
Reviewed-on: #7
This commit is contained in:
commit
b377f7a9d6
@ -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
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user