Stuck on this simple exercice


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 ) {

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


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


It worked, Thanks a lot dude


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