Estructura con while

This commit is contained in:
2026-04-29 10:06:50 -03:00
parent a294c1c379
commit e81887d20a

View File

@@ -24,3 +24,12 @@ if (edad >= 18) {
} else {
console.log("Eres niño");
}
const maximo = 15;
let actual = 3;
// ESTRUCTURA CON WHILE
while (actual < maximo) {
console.log(actual);
actual += 3;
}