4. For some reason the website says that i made a mistate


#1


Objects II 4.Can i see your references?


IMO it's good but the compiler sees some mistakes


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


#2

Hi this line

console.log("Hi I work as a" + " " + this.job);

you should add a comma after Hi in the string


#3

i can't believe that this exercise held only for comma ;_;


#4

but still thank you sir!


#5

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