Skip to content

Commit 77fc917

Browse files
committed
todays day name in 7 days 👍
1 parent ccf240e commit 77fc917

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const weekdays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
2+
// todays day
3+
const day = weekdays[new Date().getDay()];
4+
5+
console.log(day);

0 commit comments

Comments
 (0)