Sleep Debt Calculator step 7

Hi, I’m testing my code, and is supposed to print the sum of all sleep hours in the week but it prints 22error888. what I did wrong in the if/else statement?

const getSleepHours = day => {
  if (day === "monday") {
    return 8;
  } else if (day === "tuesday") {
    return 8;
  } else if (day === "wendsday") {
    return 8;
  } else if (day === "tursday") {
    return 8;
  } else if (day === "friday") {
    return 8;
  } else if (day === "saturday") {
    return 8;
  } else if (day === "sunday") {
    return 8;
  } else {
    return "error";
  }
 
};

const getActualSleepHours = () =>
getSleepHours("monday") + getSleepHours("tuesday") + getSleepHours("wendsday") + getSleepHours("thursday") + getSleepHours("friday") + getSleepHours("saturday") + getSleepHours("sunday");

const getIdealSleepHours = () => {
  const idealHours = 8; return idealHours * 7
};

console.log(getActualSleepHours());
console.log(getIdealSleepHours());

you could add a .log():

 else {
    console.log(day);
    return "error";
  }

to see what day goes wrong. And then look at that else if condition

besides this issue, you also misspelled Wednesday, but you misspelled that both times, so you get away with it.

thanks! I need to be careful with the spelling!

This is exactly why (once you move away from codecademy) you should install a spell-check plugin. Unfortunately, codecademy does not offer this feature.