3. Literally speaking please help


#1

speak: function( mood ) {
console.log("Hello, I'm feeling"+" "+ mood);

}

};

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


#2

try this code

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

}
};

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


#3

thx a lot but it doesn't works to


#4

hello! my version looks like this
var james = {
job: "programmer",
married: false,
speak: function( howFeel ) {
console.log("Hello, I am feeling " + howFeel)
}
};

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

it's work. difference is in semicolon after console.log, maybe it's the reason?


#5

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

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


#6

Thank you for this! It worked, jut can't seem to pinpoint error


#7

//why doesnt this one work?

var james = {
job: "programmer",
married: false,
speak: function(dialogue) {
console.log(dialogue);
}
};

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


#8

speak: function(feelings) {
console.log("Hello, I am feeling" + " " + feelings)

}