feature/algoritmos #1

Merged
cainamilech merged 12 commits from feature/algoritmos into master 2022-10-29 19:58:08 +00:00
Showing only changes of commit c2856f8a54 - Show all commits

View File

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