3/30 Why does this happen?


#1



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


I looked at other questions and compared the solutions to mine and they looked the same! The only difference is that I keep getting the message : 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("Hello! I am feeling " + mood);
    }
};

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


#2

nvm the problem was the exclamation mark. It was supposed to be a comma