Codecademy help, Javascript -


despite best efforts, can't seem question correct , keep getting errors. seeing codecademy forums bit slow, figured post here.

this question i'm working on: http://www.codecademy.com/courses/javascript-beginner-en-6lzgd/2/4?curriculum_id=506324b3a7dffd00020bf661

here code have input:

// write function below.  // don't forget call function!  var sleepcheck = function(numhours) {     if (sleepcheck >= 8); {     return "you're getting plenty of sleep! maybe much!";     }     else {         return "get more shut eye!";     } };  console.log(sleepcheck(10)); console.log(sleepcheck(5)); console.log(sleepcheck(8)); 

thank answered input, issue has been taken care of.

if (sleepcheck >= 8); { 

change to

if (numhours >= 8) { 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -