feature/challenge-algorithms #1

Merged
EleonoraOtz merged 11 commits from feature/challenge-algorithms into master 2022-11-01 20:41:51 +00:00
Showing only changes of commit 3cdeba11dd - Show all commits

View File

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