Can I see your References ---This code passes but doesn't print to the console.log


#1

This code passes but doesn't print to the console.log. I'm confused about why. Any help appreciated. Thanks!

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


#2

I'm running into the same problem, and my code is the same!


#3

was having the same problem but refreshed the browser to resubmit and it went that time for some reason. Here's my code so you can copy / paste over yours

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();