3. Literally Speaking, help me understand please


#1

Hey everyone,

the following code passes, but does not print anything to the console. Help me figure out what I'm doing wrong?

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

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



~MIKE


#2

@mikegl,

Have tried a =reset= Browser

++++ 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


#3

Thanks! I thought I had already tried resetting, as this has happened before already, but figured I'd give it another try. I copied my code, refreshed the page, went to the codecademy home page and re entered the course and pasted my code.

Your help is greatly appreciated!


~MIKE


#4

Thanks for all the questions that you have helped me to solve