From cc129f3d5300f35e61539a1485636fd76653f24a Mon Sep 17 00:00:00 2001 From: MarcelloMartins Date: Mon, 31 Oct 2022 18:35:31 -0300 Subject: [PATCH] fix(07-sumeven): created variable resposta --- 07-sumEven/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/07-sumEven/index.js b/07-sumEven/index.js index 8845d8b..592c2ef 100644 --- a/07-sumEven/index.js +++ b/07-sumEven/index.js @@ -1,5 +1,6 @@ export function sumEven(value) { // implementar logica aqui + let resposta = 0 value.forEach(element => { if(element % 2 === 0) resposta += element