1. object review


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

// james' first job

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

// james' second job

ReferenceError: sayJob is not defined <--- why?? :confused:

1.object review

Because why is your function sayJob() making itself equal to sayJob. Whats going on in there?!


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