Answers for "days of week array js"

2

array days of the week

dayName = new Array ("Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
Posted by: Guest on May-04-2020
0

js day monday tuesday wednesday

const WEEK_DAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];

const date = new Date();
const literalDayOfWeek = WEEK_DAYS[date.getDay()];
Posted by: Guest on October-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language