Please help ! 12


#1

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


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

(sleepCheck(10);
(sleepCheck(5);
(sleepCheck(8);

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


#2

@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


#7

i figured it out, thanks heaps :slight_smile:


#8

Good I am glad you did


#9

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