#4 Can I see your references: Console not logging anything


It lets me pass the exercise but the only thing in the console is "ReferenceError: job is not defined". What do am I doing wrong here guys? lol

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


this.job = "super programmer";



Here is where it is undefined, do you know why?


idk :disappointed_relieved:

i've tried with nothing in the brackets, and with ', and with ".. ):

also whats the difference between " and ' ?? Like when would you use one vs the other D:


You should pass in self, then reference self.job, rather than using job as an argument, as job isn't defined outside of your object.