You are viewing a single comment's thread. Return to all comments →
function getDayName(dateString) { let dayName = new Date(dateString); const weekday = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; return weekday[dayName.getDay()]; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 6: JavaScript Dates
You are viewing a single comment's thread. Return to all comments →