What is wrong with my code. . .?


#1

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

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

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

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


#2

you have to print

Hi, I work as a super programmer

you are printing

Hi, I work as asuper programmer

note that space between a and super


#3

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