From 26aabacf986c7d27eeef29dbfa9b69382e7570e3 Mon Sep 17 00:00:00 2001 From: Lucio Gaibazzi Date: Sun, 3 May 2026 20:13:02 -0300 Subject: [PATCH] Realizo el ejercicio 3 de la clase 6 --- ejercicios.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ejercicios.js b/ejercicios.js index 1d7dcf2..39fd1d9 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -8,10 +8,14 @@ let nombre = "Lucho"; console.log(`Hola, ${nombre}!`); let edad = 21; -if (edad >= 18) { - console.log("Lucho es mayor de edad"); +if (edad < 13) { + console.log("Lucho está en la infancia"); +} + +else if (edad >= 13 && edad <= 17) { + console.log("Lucho está en la adolescencia"); } else { - console.log("Lucho es menor de edad"); + console.log("Lucho está en la adultez"); } \ No newline at end of file