Stuck on this simple exercice


#1

https://www.codecademy.com/courses/objects-ii/0/3?curriculum_id=506324b3a7dffd00020bf661

Oops, try again. It looks like your speak method doesn't properly take in a single argument and output the correct string.

var james = {
    job: "programmer",
    married: false,
    speak: function( mood ) {
        console.log(mood);
    }
};

james.speak("Hello, I am feeling great");
james.speak("Hello, I am feeling just okay");


#2

try replacing
console.log("Hello, I am feeling " + mood);
and
james.speak("great");
james.speak("just okay");


#3

It worked, Thanks a lot dude


#4

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