feat(07-sumEven)executa exercicio 7

This commit is contained in:
Henrique Martins Silva 2022-10-29 15:02:54 -03:00
parent 87c9a5f108
commit 151c74165a

View File

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