Literally speaking


This code passed, but has a error message in the console saying "RangeError: Maximum call stack size exceeded." What does that mean and did i miss the point of the exercise?

var james = {
    job: "programmer",
    married: false,
    speak: function(mood) {
       console.log("Hello, I am feeling"+""+james.speak());
       console.log("Hello, I am feeling"+""+james.speak());

james.speak("just okay");


you have recursion. your method should have only one console.log, and then log string + mood (method parameter) to console


I changed my code and it lets me pass but doesn't display anything in the console.


that is weird, try refreshing the page. Otherwise copy paste your code to the forum so i can run it


That worked! Thank you much.


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