fix(07-sumeven): created variable resposta

This commit is contained in:
Marcello Rodrigues Martins 2022-10-31 18:35:31 -03:00
parent 21eda043e2
commit cc129f3d53

View File

@ -1,5 +1,6 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
let resposta = 0
value.forEach(element => { value.forEach(element => {
if(element % 2 === 0) if(element % 2 === 0)
resposta += element resposta += element