feat: classify age into chilhood, teen and adult

This commit is contained in:
2026-04-28 15:17:51 -03:00
parent 1afc9c8d13
commit 8c7d3dfd4b

View File

@@ -14,3 +14,11 @@ if (age >= 18) {
} }
// Segundo ejercicio: // Segundo ejercicio:
if (age >= 18) {
console.log(name + " es un adulto");
} else if (age >= 13) {
console.log(name + " es un adolescente");
} else {
console.log(name + " es un infante");
}