Introduction to Objects


It keeps saying the console did not print "Hi I work as a " + this.job ?
var james = {
job: "programmer",
married: false,
sayJob: function() {
// complete this method
console.log("Hi I work as a " + this.job);

// james' first job

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

// james' second job
not remove the three backticks above>


Is this an exact match to the string provided in the instructions?


There was a comma. Facepalm.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.