Sleep check


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!";}
//i keep getting SyntaxError: expected expression, got keyword 'if'
//what am i doing wrong?


Maybe you need a opening bracket after (numHours)?


Hi you need to open a{ } after sleepCheck = function(numHours) ` and and put all your code inside it like that

var sleepCheck=function (numHours) { <== this open 
if (. ....){


else {

} <== this close it