You are viewing a single comment's thread. Return to all comments →
function getDayName(dateString) { let dayName=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; const day=new Date(dateString).getDay(); return dayName[day]; }
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 →