3. literally speaking



What am I doing wrong? I keep getting the following error even though the page grades it as correct.

ReferenceError: Can't find variable: great

Thank you,

var james = {
    job: "programmer",
    married: false,
    speak: function(mood) {
        switch (mood) {
            case great: "Hello, I am feeling great";
            case just_okay: "Hello, I am feeling just okay";

james.speak("just okay");


This should be a string, as well, the second case.


Thank you, I also did not log it to the console.


Good job. You will often find me addressing only one problem, even while there may be others. You kept at it, and found the other on your own. Kudos!


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