What is wrong?


#1

var controlRest = function (numberHours){
if(numberHours >= 8){
return "¡You are sleeping well! ¡Too much maybe!";
}
else{
return "¡Close your eyes a little bit more!";
};
};
console.log(controlRest(10));
console.log(controlRest(5));
console.log(controlRest(8));

and then gives me back the next error:
Try again. It seems that the function does not return " Close your eyes a little bit more! " . When numberHours is (5), check the syntax if / else and if you are using the appropriate comparison operator .


#2

You have to to return the desired string exactly as they want it. You have some unwanted character in the string you are returning


#4

I copy the text they bring me instead of writing myself and works, what a stupid error,
sorry and thanks


#5

No problemo . Happy Coding buddy :smile: