testing react/next.js + some builtin methods in js
This commit is contained in:
parent
1262da454d
commit
d5d5cdde23
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue