We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf240e commit 77fc917Copy full SHA for 77fc917
01 - JavaScript-Basics/getTodayName.js
@@ -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