Merge pull request 'feat(sumEven): adiciona resolucao questao07-sumeven' (#7) from feature/sumEven into development

Reviewed-on: #7
This commit is contained in:
Carlos Eduardo T. Winter 2022-10-28 19:11:18 +00:00
commit 452a9e79bd

View File

@ -1,4 +1,9 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
let res=0;
value.forEach(element => {
if(element % 2 === 0)
res+=element;
});
return res;
} }