Who's In Your Bracket?


#1

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

The code shows the following error:
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]);


#2

I have almost the same issue. let me try to help and pose a question as well.


#3

Try refreshing the page with the same code. This worked for me. Your code is perfectly fine.


#4

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