Functions & If/Else unexpected identifier


#1

What am I doing wrong? It keeps telling me "unexpected identifier"

// 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 more shut eye"};
};
sleepCheck(10)
sleepCheck(5)
sleepCheck(5)


#2

You have an extra equals.

if numHours*HERE=HERE* >=8{

Also, when you call your function, you need a semicolon.