Dont Know Error


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661


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


#2

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

sleepCheck(10);

should be at end of your code.


#3
  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.