Can I See Your References?


#1



My code works. I just don't know why "this.job" can't be the parameter since it is not the same it acts like a placeholder?


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


#2

maybe this could help :slight_smile:


#3

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