feat(desafio): Adiciona setima tarefa concluida

This commit is contained in:
Manuela Luana Schumacker Tavares 2022-10-28 16:19:22 -03:00
parent 955c3872fa
commit 663341a99a

View File

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