3/30


#1

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

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

OK so it says this code passes but it doesnt log the proper answers. I'm guessing that it has something to do with +speak) part but im not sure. so any help to fix this would be great.


#2

You figured correctly, it is to do with + speak which should read, + mood, the formal parameter. speak is undefined.


#3

swithed it to +mood) and it said "opps, try again. it looks like your speak method doesnt properly take in a single argument and output the correct string." but it is logging "Hello, I am feeling just great" "Hello, I am feeling just just okay"
so yeah now it does the right thing but says its wrong...


#4

added a "just" in the first console.log.... im dumb. thanks for the help.