Literally Speaking


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("just okay");



speak: function()

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

james.speak("just okay");

get there value passed into the method parameter

guess so


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


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