Why this code doesnt work?


#1
`var james = {
    job: "programmer",
    married: false,
    sayJob: function() {
        // 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();

I dont understand where is going to print out super programmer when in function is nowhere to find sayJob();


#2

Hi the lesson says Then in line 14, change the job for james to "super programmer". So it should be like that james.job = "super programmer"