testing react/next.js + some builtin methods in js

This commit is contained in:
Geir Okkenhaug Jerstad 2024-09-05 14:46:32 +02:00
parent 1262da454d
commit d5d5cdde23

View file

@ -25,16 +25,16 @@ for (let current = 20; ;current = current +1){
}
}
// switch (prompt("What is the weather like?")) {
// case "rainy":
// console.log("Remember to bring an umbrella.");
// break;
// case "sunny":
// console.log("Dress lightly.");
// case "cloudy":
// console.log("Go outside.");
// break;
// default:
// console.log("Unknown weather type!");
// break;
// }
switch (prompt("What is the weather like?")) {
case "rainy":
console.log("Remember to bring an umbrella.");
break;
case "sunny":
console.log("Dress lightly.");
case "cloudy":
console.log("Go outside.");
break;
default:
console.log("Unknown weather type!");
break;
}