Functions


#1

can't seem to understand what's wrong with this code:

var numHours = function(hours){
if (numHours > 3){
console.log("Have Lunch");
}
else{
console.log ("Go back to work")
}
numHours(6)
};


#2

the function call should be after the function

Can you post the url of the exercise?


#3

oh, ok, thanks.
actually, this wasn't really an excercise. you had to make one on your own.