[Can I See Your References?] the results are not printed


#1


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


The code works and I pass the excercise. However, nothing gets printed on the screen. Why? Is the code correct? Or is it a bug in the excercise itself.


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

HI try to refresh the page .. Your code


#3

hi it works now. thanks


#4

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