I Don't what i did wrong


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("just okay");


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

... + mood);


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