Can I see your references? - Accepted code, but did not execute code in console


#1



The compiler did not return an error and it marked me as correct, but I do not see the method being run at all, let alone twice. Why might this be?


var james = {
    job: "programmer",
    married: false,
    sayJob: function() {
        // complete this method
        console.log("Hi, I work as a" + " " + james.job);
    }
};

// james' first job
james.sayJob();

// change james' job to "super programmer" here
james.job = "super programmer";

// james' second job
james.sayJob();


#2

Try

this.job

Instead.


#3

Thanks, @jibblyj! Thought I tried that first, but alas, it works!