feat(sumEven): implementa funcao sumEven #7

Merged
DaviKlein merged 1 commits from feature/sumEven into development 2022-10-28 22:11:00 +00:00
Showing only changes of commit 5ee7ae51ed - Show all commits

View File

@ -1,4 +1,9 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
let resultado=0;
for(let i=0;i < value.length;i++){
if(value[i] % 2 == 0)
resultado += value[i];
}
return resultado
} }