Functions & if/else: Problem with syntax


#1

Im not sure where my problem is!

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

SyntaxError: Unexpected identifier


#2

var is a keyword, keywords are case-sensative, Var sleepcheck should be var sleepcheck