-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathscript.js
More file actions
39 lines (37 loc) · 1003 Bytes
/
script.js
File metadata and controls
39 lines (37 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const day = "monday";
switch (day) {
case "monday": // day === 'monday'
console.log("Plan course structure");
console.log("Go to coding meetup");
break;
case "tuesday":
console.log("Prepare theory videos");
break;
case "wednesday":
case "thursday":
console.log("Write code examples");
break;
case "friday":
console.log("Record videos");
break;
case "saturday":
case "sunday":
console.log("Enjoy the weekend");
break;
default:
console.log("Not a valid day!");
}
if (day === "monday") {
console.log("Plan course structure 🎉");
console.log("Go to coding meetup 🏆");
} else if (day === "tuesday") {
console.log("Prepare theory videos");
} else if (day === "wednesday" || day === "thursday") {
console.log("Write code examples");
} else if (day === "friday") {
console.log("Record videos");
} else if (day === "saturday" || day === "sunday") {
console.log("Enjoy the weekend");
} else {
console.log("Not a valid day!");
}