Introduction to functions; 12) functions if/ else


hey I was wondering if you guys could help me find out what is wrong with my code :wink:). Thanks!
here it is. it says that I have a syntax error. however, I cannot find it.

var sleepCheck = function(numHours);
if (numHours >= 8) {
    return "You're getting lot<s of of sleep! Maybe even too much!";
else {
    return "Get some more shut eye!";
sleepCheck (10);
sleepCheck (5);
sleepCheck (8);


Check this text agains the instructions. It needs to match exactly.

The semi-colon at the end should be an opening curly brace, {. Be sure to add a closing brace after the else statement so the function body is closed.


Alright thank you so much