Какой сегодня день?

let getDayOfWeek = function (dayFirst, number) {
  let weekDays = {
    'понедельник': 1,
    'вторник': 2,
    'среда': 3,
    'четверг': 4,
    'пятница': 5,
    'суббота': 6,
    'воскресенье': 0
  };
  let dayNumber = (number % 7) + weekDays[dayFirst]-1;  
  
    return Object.keys(weekDays)[dayNumber-1];

  }
let getDayOfWeek = function (dayFirst, number) {
  let weekDays = ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг',
'пятница', 'суббота'];
  let dayNumber = (number % 7) + weekDays.indexOf(dayFirst)-1;  
  
    return weekDays[dayNumber];

  }
const getDayOfWeek = (firstDayOfMonth, askedDay) => {
  
  const week = ["понедельник", "вторник", "среда", "четверг", "пятница", "суббота", "воскресенье"];
  const indexOfFirstDay = week.indexOf(firstDayOfMonth);
  
  const dayOfWeek = (indexOfFirstDay + askedDay - 1) % 7;
  
  return week[dayOfWeek];
}