feat(sumEven): algoritmo concluido

This commit is contained in:
Mateus Antonio Rodrigues Lopes 2022-11-02 17:51:22 -03:00
parent 13279da8b3
commit 2e94bf29aa

View File

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