I found a bug


I found a bug. If you enter this you will pass, unless this is correct somehow. The line with the stars.

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

// james' first job

// change james' job to "super programmer" here

// james' second job


Agree, I was wondering what was wrong with my code:

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

However, after deleting the place holder word 'job' from "sayJob: function (job)", I passed the lesson; even though, obviously, the following error appeared: ReferenceError: job is not defined.


on line 6, should it be console.log("Hi, I work as a " + this.job");