Functions and if/else


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


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


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