RangeError: Maximum call stack size exceeded


#1



https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/2/4?curriculum_id=506324b3a7dffd00020bf661


RangeError: Maximum call stack size exceeded


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

your function declaration on line 1:

var sleepcheck

and your function call:

sleepCheck(10);

are you sure both are spelled exactly the same? (case sensitive)


#3

oh thank you, i didn't find the mistake