Please help me with this: Can I See Your References?


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

// james' first job

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

// james' second job

where am i getting wrong?


This line is incorrect, remember you are assigning something.
james.sayJob = "super programmer";


^^ This confused me. I tried the one below and it worked

james.job = "super programmer";


@bigdoods That's what I said in my post that the above code was incorrect