feat:finalizando o Setimo Exercício

This commit is contained in:
tiago medeiros rodrigues 2022-11-02 16:38:59 -03:00
parent c09ca6a7b8
commit a11f735ed5

View File

@ -1,4 +1,11 @@
export function sumEven(value) {
let soma = 0;
for (let i = 0; i < value.length; i++) {
if (value[i] % 2 === 0) {
soma += value[i];
}
}
return soma;
}