Lesson 12 - my code is not running


#1


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


i cant find the mistake


Replace this line with your code. 

// Write your function below. 
// Don't forget to call your function!
var sleepCheck = function(numHours)
{
    if (numHours>=8)
    {
        return "your getting plenty of sleep! Maybe even too much!";
    }
    
    else
    {
        return "Get some shut eye!";
    }
};
     sleepCheck(10);
     sleepCheck(5);
     sleepCheck(8);


#2

Check this string against that given in the instructions. It must be an exact match to that one.


#3

i dont see whats wrong with that line


#4

nvr mind. i solved it. thanks!


#5

3 posts were split to a new topic: My code is not working


#6