Trouble with my if/ else and function


#1



https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661#


Hey all. I am having trouble iwth my code, and I don't understand why The code I get from the page is
"SyntaxError: Unexpected token ILLEGAL"


var sleepCheck = function(numHours) {
    
 if (numHours >= 8) {
     
     return "You're getting plenty of sleep! Maybe even too much!;
 }
 else {
     return "Get some more shut eye!";
 };
    
    
    
    
    
    
};

console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#2

Hi

you forgot to close your string in the if with a "

Cheerio


#3

Oh gods, that was stupid. Thanks a bunch. Should really look more carefully hahahha