Skip to content

Commit 8ea0b22

Browse files
omo bro wtf
1 parent 9b01778 commit 8ea0b22

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

logic/reademe.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

logic/switch.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ switch (month) {
3030
}
3131

3232
// lets define a date
33-
const date = new Date(2022, 1, 20, 8, 0, 0);
33+
// const date = new Date(2022, 1, 20, 8, 0, 0);
34+
35+
const date = new Date();
36+
37+
console.log(date);
3438

3539
const day = date.getDay();
3640

3741
switch (day) {
3842
case 0:
39-
console.log("Its mondday");
43+
console.log("Its Monday");
4044
break;
4145

4246
case 1:
@@ -48,6 +52,6 @@ switch (day) {
4852
break;
4953

5054
default:
51-
console.log("its not a day in the week");
55+
console.log("");
5256
break;
5357
}

0 commit comments

Comments
 (0)