sayJob function not properly logging


#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.job = "super programmer";

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

i m getting the output for both the jobs...but still its showing my sayJob function not properly logging the hi i m woarking as a [job]...


Can I See Your References?
#2

The SCT is looking for an exact match to the phrase given in the instructions.

console.log("Hi, I work as a " + this.job);  // check the phrase