Inactive Tutor answered 10/06/19
Javascript Help!!!!
1) Create a file called dayOfWeek.js
2) Write javaScript code that will display the current Day of the Week and the next day. ex) "Today is Wednesday and tomorrow is Thursday" if it is Wednesday.
2a) Create a Date Object
2b) Get the numerical day of the week from the date object (0= Sunday, 1 = Monday, etc. )
2c) Create an array of Days of the Week names and use the array to print the day of the week based on the day number.
Use an Array to story the names of the days of the week.
Used a function that will return the message to be displayed.
1 Expert Answer
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Inactive Tutor
not sure why the code editor added the line breaks on the array items10/06/19