• + 0 comments

    function getDayName(dateString) { let dayName; // Write your code here let dayweeks = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] dayName = new Date(dateString).getDay() return dayweeks[dayName]; }