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


#1

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);
}
};

james.sayJob(job);

this.job = "super programmer";

james.sayJob(job);


#2

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


#3

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:


#4

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.