I Don't what i did wrong


#1



t 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("Hello, I am feeling " +james.speak);
      console.log("Hello, I an feeling " +james.speak);
    }
};

james.speak("great");
james.speak("just okay");


#2

First, remove the comma from the parameter; and, second, use the variable in the log statements.

... + mood);

#3

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