diff --git a/07-sumEven/index.js b/07-sumEven/index.js index bb1e095..b777b31 100644 --- a/07-sumEven/index.js +++ b/07-sumEven/index.js @@ -1,4 +1,14 @@ -export function sumEven(value) { +export function sumEven(values) { // implementar logica aqui -} \ No newline at end of file + let soma = 0 + + for (let index = 0; index < values.length; index++) { + if (values[index] % 2 === 0) { + soma += values[index] + + + } + } + return soma +}