Hello, I’m currently working through the sleep debt calculator project on codecademy! My question is whether or not you need to add an else statement for determining the day. I guess I’m missing the logic behind adding an else statement that checks if it’s a day of the week or not. Seems rather irrelevant as it isn’t possible for it to not be any given day of the week.
I have my else statements for everyday of the week and they all return a value of how many hours were slept on that given day. However, the “get unstuck” video states I require an else statement and will throw an ‘Error’ message to the console if it isn’t a day of the week haha.
Any and all input is greatly appreciated!!