12. Functions & if / else


// Write your function below. 
// Don't forget to call your function!
var sleepCheck = function(numHours){
        return "You're getting plenty of sleep! Maybe even too much!";
        return "Get some more shut eye!";

i was calling the function for three times with different values , but the function just gives an output. i cannot understand why it didnt gives an output for all calling .


the functions only return, they do not log anything

to log what a function return call console.log() on the sleepCheck function calls


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.