You are viewing a single comment's thread. Return to all comments →
function getDayName(dateString) { const namePerDay = new Map([ [0, "Sunday"], [1, "Monday"], [2, "Tuesday"], [3, "Wednesday"], [4, "Thursday"], [5, "Friday"], [6, "Saturday"] ]) return namePerDay.get(new Date(dateString).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 →