funciones

This commit is contained in:
2026-02-06 17:07:16 -03:00
parent 9bd9bfbd73
commit 0781c0c954
2 changed files with 52 additions and 6 deletions

9
oso.js
View File

@@ -24,15 +24,12 @@ switch (true) {
}
/* if (temperaturaRandom <= 10) estacion = 'Invierno';
else if (temperaturaRandom > 10 && temperaturaRandom <= 15) estacion = 'Otoño';
else if (temperaturaRandom > 15 && temperaturaRandom <= 24) estacion = 'Primavera';
else estacion = 'Verano';
*/
const mensaje = `
${saludo}
Hoy ${hoy} de ${estacion}, tenemos una temperatura de ${temperaturaRandom}°.
${consejos[estacion]}
`;
console.log(mensaje);
console.log(mensaje);