4. Can I See Your References?


#1

https://www.codecademy.com/courses/objects-ii/0/4?curriculum_id=506324b3a7dffd00020bf661#


I keep getting an error message that say unexpected token but I cant figure out why.


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

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

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

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


#2

@jcarrot,
You are missing a closing curly-bracket-} with which you would close the sayJob() Method.


#3

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