Who's in your Bracket?


#1


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


it is giving me this errror - "Oops, try again. It looks like james' job was not logged to the console."


Replace this line with your code. 
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]);


#2

Your console.log() should just be the variable name but adding the job property to the james object should be on a seperate line,

james[aProperty];


console.log(aProperty)

#3

it worked by the way..it was just the caching problem..btw thanks..:slight_smile:


#4

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