PLEASE HELP my code is not working


Here is my code:

function sleepCheck(numHours); 
if numHours >= 8 {
return "You're getting plenty of sleep! Maybe even too much!";

return "Get some more shut eye!";



look at the function syntax:

function myFunction(){


see the difference? no semi-colon and curly brackets to mark start and end of function


2 posts were split to a new topic: sleepCheck


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