4. Can I See Your References?


#1


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


I get the correct answer for this lesson, but nothing prints out...am I supposed to see something print after I run this?


var james = {
    job: "programmer",
    married: false,
    sayJob: function() {
        // 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

i ran your code:

you

Yes, you should see output. Maybe refresh the page?


#4

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