I'm stuck please help!


This is the excercise i'm stuck on:

This is the error message the console is giving me:
SyntaxError: Unexpected token if

This is how my code looks:
var sleepCheck = function (numHours)
if (numHours >= 8) {
    return "You're getting plenty of sleep! Maybe even too much!";
    return "Get some more shut eye!";

Please Help Thanks:3


You need curly brackets around your function body.


Could you give me an example i don't really understand what you mean.


After this add a {


And after the else bracket add one more on a new line with a semi colon



Thank you very much.


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