Literally Speaking


#1

var james = {
job: “programmer”,
married: false,
speak: function( mood ) {
console.log(“Hello, I am feeling” + mood);
}
};

james.speak(“great”);
james.speak(“just okay”);

Whats wrong with my code?
I had this error
"Oops, try again. It looks like your speak method doesn’t properly take in a single argument and output the correct string."
ANY HELP?
Thanks


#2

Not sure as I don’t know which exercise this is. But looking at the code I would assume you just need to add a space after feeling. otherwise that prints “Hello, I am feelinggreat”


#3

Thanks, that solved the problem.