12/13


#1

// Write your function below.
// Don't forget to call your function!
I cant figure this out. what am i doing wrong?

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

unexpected token


// 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(10);
    sleepCheck(5);
    sleepCheck(8);


#2

Remove the semicolon

var sleepCheck=function(numHours);{ <<<here

#3

always the dumbest things that gt me ty


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.