I am stuck on the 5th exercise of this section and i can't understand the error even though i seem to have coded correctly


#1


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


Oops, try again. It looks like james' job was not logged to the console.


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

// set to the first property name of "james"
var aProperty = "job";

// print the value of the first property of "james" 
// using the variable "aProperty"
console.log(james[aProperty]);


#3

how is this a solution to my problem???


#4

Haha... I only withdrew my post. I couldn't identify any issue with the code. :slight_smile: See screenshot.

No offence. :slight_smile:


#5

Lol.... finally worked out for me too... same code.... :stuck_out_tongue: still didn't understand the error though :smiley:


#6

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