diff --git a/eloquentjavascript/test_script.js b/eloquentjavascript/test_script.js index 1b00ea4..8878af5 100644 --- a/eloquentjavascript/test_script.js +++ b/eloquentjavascript/test_script.js @@ -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; + }