Lesson 12 having a bit of trouble


#1



lesson 12 having trouble

Replace this line with your code. 
// 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!";
};
console.log(sleepCheck(10));
console.log(sleepCheck(5));
console.log(sleepCheck(8));


#2

@mtap52190,
The condition should be encapsulated by a pair of parentheses-( )
so change your

if (numHours) >=8{

into

if (numHours >=8) {

#3

Too many semi-colons, and missing braces.

    var myFunc = function ( arg ) {
        if ( coondition ) {

        } else {

        }
    };