diff --git a/07-sumEven/index.js b/07-sumEven/index.js index bb1e095..b17535e 100644 --- a/07-sumEven/index.js +++ b/07-sumEven/index.js @@ -1,4 +1,11 @@ export function sumEven(value) { // implementar logica aqui - -} \ No newline at end of file + var retorno = value.filter(pares => (pares %2)== 0); + let soma = 0 + for(let i in retorno) { + soma += retorno[i] + } + return soma +} + +