feat(sumEven): algoritmo concluido
This commit is contained in:
parent
13279da8b3
commit
2e94bf29aa
@ -1,4 +1,10 @@
|
||||
export function sumEven(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
let parSomado = 0
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
if (value[i] % 2 === 0) {
|
||||
parSomado += value[i]
|
||||
}
|
||||
}
|
||||
return parSomado
|
||||
}
|
Loading…
Reference in New Issue
Block a user