Lesson 12


#1


Hello, I am currently stuck on lesson 12 of the Javascript


I don't understand what is wrong with my code at all, it doesn't work and i get errors


Replace this line with your code. 
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!";
    }
}


#2

if(numHours => 8) // write >= instead of =>

#3

cheeers mate workked outfine


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.