1//Grab day of the week from local computer
2let date = new Date();
3let dayOfWeekNumber = date.getDay();
4let nameOfDay;
5let quote;
6
7switch(dayOfWeekNumber){
8 case 0:
9 nameOfDay = 'Sunday';
10 quote = 'Time to chillax!';
11 break;
12 case 1:
13 nameOfDay = 'Monday';
14 quote = 'Monday morning blues!';
15 break;
16 case 2:
17 nameOfDay = 'Tuesday';
18 quote = 'Taco Time!';
19 break;
20 case 3:
21 nameOfDay = 'Wednesday';
22 quote = 'Two more days to the weekend.';
23 break;
24 case 4:
25 nameOfDay = 'Thursday';
26 quote = 'The weekend is almost here...';
27 break;
28 case 5:
29 nameOfDay = 'Friday';
30 quote = 'Weekend is here!';
31 break;
32 case 6:
33 nameOfDay = 'Saturday';
34 quote = 'Time to party!';
35 break;
36
37}
38//Display the day of the week
39let weekdayDiv = document.getElementById('weekday');
40weekdayDiv.innerHTML = `${nameOfDay}`;
41
42//Display quote
43let quoteDiv = document.getElementById('phrase');
44quoteDiv.innerHTML = `${quote}`
45
46
47