develop #11

Merged
nicolasrosadeoliveira merged 20 commits from develop into master 2022-10-29 19:56:35 +00:00
Showing only changes of commit 2415e944a0 - Show all commits

View File

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