Functions and if/else


#1

var sleepCheck = function(numHours) {
if(numHours > 8){
return"Your're getting plenty of sleep! Maybe even too much!";
}
else{
return"Get some more shut eye!";
}
}

sleepCheck(10)

It prints what it's supposed to but it's telling me I'm wrong, what have I done wrong?


#2

If I'm not mistaken, the conditional should be,

if (numHours >= 8) {

#3

As well as what @mtf said, you misspelled the word "you're" which may have an effect on SCT.