2022-10-27 15:07:13 +00:00
|
|
|
export function sumEven(value) {
|
|
|
|
// implementar logica aqui
|
2022-10-31 16:52:10 +00:00
|
|
|
let resultEvenSum = 0;
|
|
|
|
value.forEach(element => {
|
|
|
|
if ((element % 2) === 0) {
|
|
|
|
resultEvenSum += element;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
return resultEvenSum;
|
2022-10-27 15:07:13 +00:00
|
|
|
}
|