feature/algoritimos #1

Merged
RamonDiasFerreira merged 11 commits from feature/algoritimos into master 2022-11-02 19:48:31 +00:00
Showing only changes of commit 3bc3385c9f - Show all commits

View File

@ -1,4 +1,11 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
var retorno = value.filter(pares => (pares %2)== 0);
let soma = 0
for(let i in retorno) {
soma += retorno[i]
}
return soma
} }