Can I See Your References?


#1

i have no idea what;s wrong with my code ..
always error message say that :
Oops, try again. It looks like you did not change james.job to 'super programmer' on line 14.

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.sayJob("super programmer");

// james' second job
james.sayJob();


#2

HI this line

james.sayJob("super programmer");

you should change the programmer to super programmer so you should do it like that

james["job"] = "super programmer";

#3

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