Where am I getting wrong?


#1

// Write your function below.
// Don't forget to call your function!
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!");
    }

};
sleepCheck(6);


#2

i just solved this myself. You don't need the parenthesis to envelope the return string, you just need the quotes.. it's the only difference between your code and mine.


#3

Bear in mind that provided text is what will be expected. The exactness is a given expectation.