4. Can I See Your References? What is wrong?


#1



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


I keep getting an error that says: Oops, try again. It looks like you did not change james.job to 'super programmer' on line 14. I don't understand what is not working?


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

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

// change james' job to "super programmer" here
james.sayJob("super programmer");

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


#2

We cannot use the sayJob() method to alter the value of james.job. We need to do this directly.

james.job = "super programmer";