Dont Know Error


// Write your function below. 
// Don't forget to call your function!
function sleepCheck (numHours)
if (sleepCheck>===8)
    return("You're getting plenty of sleep!Maybe even too much!");
    return("Get some more shut eye!");


Hi your function should have that strutture

function sleepCheck(numHours) { //open the sleepCheck function

/* here go the if and else statetemtn */
} //close  the sleepCheck function

then the calling function


should be at end of your code.

  1. You forgot the curly brace after defining sleepCheck.
  2. You shouldn't be calling the function when it isn't complete. You should call it at the bottom of the page after telling the function what it should do.
  3. Make sure that when you're returning quotes, that you do exactly as the instructions say. Even a single misspelling or a space can throw it off.
  4. You forgot to call it with 8 and 5 hours as well.