Bug in exercise 5


#1


My code in this exercise kept throwing an error, despite being correct. I left the exercise and came back. My code was still there and I submitted it again, this time successfully (without changing it). I just wanted to point out the apparent bug so it could be corrected.


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


The error is gone, so I can't copy and paste or recite it word-for-word, but it said that I failed to log James's job to the console.


var james = {
    job: "programmer",
    married: false
};

// set to the first property name of "james"
var aProperty = "job"
console.log(james[aProperty]);


#2

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