CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #43

Switch Without a Break

mediumIf Statements

📄 Code

Read carefully — what does this print?
1let day = 2;
2switch (day) {
3 case 1:
4 console.log("Mon");
5 case 2:
6 console.log("Tue");
7 case 3:
8 console.log("Wed");
9 break;
10 case 4:
11 console.log("Thu");
12}
13console.log("done");

🎯 Your Answer