diff --git a/07-sumEven/index.js b/07-sumEven/index.js index bb1e095..b3f5b19 100644 --- a/07-sumEven/index.js +++ b/07-sumEven/index.js @@ -1,4 +1,12 @@ export function sumEven(value) { // implementar logica aqui - -} \ No newline at end of file + let soma = 0; + for (i in value) { + if (value[i] % 2 != 0) { + continue; + } else { + soma += value[i]; + } + } + return soma; +}