Literally speaking


#1

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("great");
james.speak("just okay");


#2

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


#3

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


#4

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


#5

That worked! Thank you much.


#6

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