What is wrong with sayJob()?


Hi, all

I've stuck with sayJob() method. I implemented a method like:

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

// james' first job

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

// james' second job

but I've got error:
Oops, try again. It looks like your sayJob() method does not properly log 'Hi, I work as a [job]' to the console

What is wrong?


Try this instead?

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