From 8c7d3dfd4be368b37d1afe6b09cf97ab342f951d Mon Sep 17 00:00:00 2001 From: Facundo Saucedo <43495919@terciariourquiza.edu.ar> Date: Tue, 28 Apr 2026 15:17:51 -0300 Subject: [PATCH] feat: classify age into chilhood, teen and adult --- ejercicios.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ejercicios.js b/ejercicios.js index 1683b3d..4379907 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -13,4 +13,12 @@ if (age >= 18) { console.log(name + " es menor de edad"); } -// Segundo ejercicio: \ No newline at end of file +// 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"); +}