funciones
This commit is contained in:
9
oso.js
9
oso.js
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user