Lesson 12


#1


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


What is wrong with this code? It just keeps saying " Expected ';' "


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

this line:

var sleepCheck + function(numHours) {

you have a + sign, while this should be a equal sign (they are on the same key, understandable typo)

and you misspelled sleepCheck in one of the function calls


#3

Thank you, I've fixed it now