4/30 console.log won't work for me


#1

Can someone help me with my code? I've stared at it for a while and I can't figure out what I did wrong:

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

}

};

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

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

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

It says that my sayJob function won't properly log my output to the console. I can't see what I'm coding wrong.


#2

You have "as" twice in your log statement. They are very particular about the output being exact. I was getting the same issue because I forgot the comma.