desafio 07-concluido

This commit is contained in:
Douglas Vinicius Nobrega 2022-10-28 18:40:50 -03:00
parent 89c3e0852a
commit 906028da29

View File

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