Lesson 12


var sleepCheck = function(numHours) {
if (numHours >= 8) {

    return "You're getting plenty of sleep! Maybe even too much!";

} else (numHours < 8) {

    return "Get some more shut eye!";




im keeping getting syntax error... can any1 help me and find that error?


on else you don't have a condition as the else runs if the if statement's condition is true

Read more on if/else statements here


thanks! for the help, i got it =]