Lesson 12


#1

i cant get this code to work on lesson 12. can anyone tell me what is wrong with it?

// 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 shut eye!");
}
}
sleepCheck(10);
sleepCheck(5);
sleepCheck(8);


#2

You need console.logs to print out your sleepCheck 's.


#3

Also, if you really want to use return, get rid of the parentheses and semicolon.


#4
they ask

"Get some more shut eye!"

you use

"Get some shut eye!"

PS
Next time please mention the EXACT Oops-message...