3. Literally Speaking


#1


No error message, passes the lesson - but doesn't print the two moods to the console?


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

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


#2

You need a semicolon after your console.log.

console.log("Hello, I am feeling" + " " + mood);
or
console.log("Hello, I am feeling " + mood);


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.