You are viewing a single comment's thread. Return to all comments →
function getDayName(dateString) { return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][new Date(dateString).getDay()]; }``
This is my solution , guess what , it is the easiest solution for this problem.
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 →
This is my solution , guess what , it is the easiest solution for this problem.