Literally Speaking


#1


https://www.codecademy.com/courses/objects-ii/0/3?curriculum_id=506324b3a7dffd00020bf661


Gives me this error. ReferenceError: speak is not defined. yet it also says "way to go, start next lesson"
**1.) I know my mistake lies within' the functions parentheses. I've checked others answers and simply put "test, or words" in function and adding it to the console where i have "speak" they say their code is fine however when i do this is still incorrect.
2.) why does mine still come out as correct? is it a glitch?**

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

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


#2

here:

speak: function()

your method should have a parameter, then arguments at method call:

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

get there value passed into the method parameter

guess so


#3

Thank You again boss!
my other mistake was it was missing the space between "feeling" & "great/okay"
it was coming out as one word.


#4

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