Introduction to Objects


#1


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
james.sayJob();

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

// james' second job
james.sayJob();
not remove the three backticks above>


#2

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


#3

There was a comma. Facepalm.


#4

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