visuell-teller

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-16 14:01:43 +02:00
parent 83f69d397d
commit 859f8334d9
12 changed files with 140 additions and 74 deletions

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;
// }