Please help ! 12


This code is not working and i cant possibly think of any reason why it isn't please help!!!

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!";


Also, can i use console.log with the sleep checks at the end?


@aidenmolluso this is the problem You need to remove this:

this ( symbol that is what you have to remove and this:

the semi-colon and replace it with this { and add this } at the end of your function


i figured it out, thanks heaps :slight_smile:


Good I am glad you did


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