Can i see your refference


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

// james' first job

// change james' job to "super programmer" here
james.sayJob("super programmer");

// james' second job

anyone have any ideas whats wrong? ;/


We do not pass a value to the the method. It looks internally at the instance variable. Use a direct assignment...

james.job = ...

This will replace the original string with your new one.


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