Introduction to Function in JS 12/13


#1

Continuing the discussion from Helpppppp (Introduction to Functions in JS 12/13) Can't seem to get the right answer:

Can someone tell me what Im doing wrong?

/ 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! Mabye even too much!";
}
else
{
return "Get some more shut eye!";
}
};
console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#2

@bjoerger,
Have you tried

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

I just did that and it did not work, but thanks for the pointer, I will definitely use that in the future. Can you see anything in my code thats incorrect? I have been trying for hours and can't get it.