forked from M3-Academy/challenge-algorithms-v2.0
fix(07-sumeven): created variable resposta
This commit is contained in:
parent
21eda043e2
commit
cc129f3d53
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user