Can you help me please?


#1

</ Write your function below.
// Don't forget to call your function!
var sleepCheck = function(numHours){
if (numHours>=8){
return "You're gettinmg plenty of sleep!Maybe even too much!";
}
else {
return"Get some shut eye!";
}
};
console.log (sleepCheck(10));
console.log(sleepCheck(5));
console.log(SleepCheck(8));


#2

problem1.
Misspelling

"You're gettinmg plenty of sleep!Maybe even too much!";

problem2
Give space between return and message you're returning..
return"Get some shut eye!";


#3

It still isn't working
// 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!";
}
};
console.log (sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#4

space between ! and Maybe!

return "You're getting plenty of sleep!Maybe even too much!";

You forgot putting more after shut!
return "Get some shut eye!";


#5

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