3. Literally speaking


#1

I do not get a error in the console all it says is on the bottom "Oops, try again. It looks like your speak method doesn't properly take in a single argument and output the correct string." But the console does print it out like it should what might be the problem here ? Code :

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

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


#2

@validusername,

Have a close look at your output !!!!

Hello, I am feeling great great


#3

I have the exact same problem, help please?

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

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

#4

@astronautraccon,

Maybe....

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#5

job: "programmer",
married: false,
speak: function(mood){
console.log("Hello, I am feeling " + "(put in a space here) " + mood)
}
};


#6

It says, that SyntaxError: missing ) after argument list, what argument list? I closed it!


#7

var james = {
job: "programmer",
married: false,
speak: function( mood ) {
console.log("Hello, I am feeling " +mood); <-------- YOU NEED A SPACE AFTER feeling

}

};

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