Functions and if/else


#1

`
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!";}

}

...
so this is where i reach but it keeps sayin syntax error:missing before statement.. can i get some help


#2

else means everything else, which means you can't check any conditions at an else statement


#3

i get it thanks.. i shouldnt have made a second condition after the else