Syntax Error


#1

// Write your function below.
// Don't forget to call your function!
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!";
}
console.log(sleepCheck(10);
console.log(sleepCheck(5);
console.log(sleepCheck(8);

NEED HELP. it says syntax error.


Functions & if/else syntax error
12. Functions & if / else issue
#2

You're missing a closing } for your function.
Also please do not hijack other peoples topics if you have a question create your own.