challenge-algorithms-v2.0-F.../07-sumEven/index.js

9 lines
191 B
JavaScript
Raw Normal View History

export function sumEven(value) {
// implementar logica aqui
let soma = 0;
value.map( element=> {
if (element % 2 === 0)
soma = soma + element;
});
return soma;
}