You have misspelled wednesday as wensday both in the switch case 'wensday': as well as in the function call getSleepHours('wensday')
You have a spelling mistake in the switch case ‘thusday’: It should be case 'thursday': Also case 'Friday': should be case 'friday':
Your switch doesn’t have cases for saturday and sunday. If you don’t want to write cases for these 2 days, then you should have a default in your switch statement to handle the situation where no case matches the day.
You have used curly braces in the code:
const getActualSleepHours = () => {
...
}
If you use curly braces, you must use the return keyword to do an explicit return. If curly braces are omitted, then the return keyword should not be used as an implicit return will be made. See this post for further explanation regarding implicit/explicit return in arrow functions.