Help please


#1

Hello all
under the var line i know there should be something within the { } but i cannot find what to put in there.
this is my code now:
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!");
}

console.log(sleepCheck(10));


#2

Hi :slightly_smiling:

Your if else statement should go in between the {} like so:

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