forked from M3-Academy/challenge-algorithms-v2.0
7 lines
159 B
JavaScript
7 lines
159 B
JavaScript
export function sumEven(value) {
|
|
// implementar logica aqui
|
|
let sums = 0;
|
|
value.forEach(item => {
|
|
if(item%2==0) sums += item;});
|
|
return sums
|
|
} |