5. Who's in Your Bracket?


#1



What is wrong with my code. It claims that I am not logging james' job 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

Looks about right to me, link to exercise?

And if it says you're not, are you? Or does something else happen?


#3

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

I have an issue with this questions as well.
My answer was the same as the matthew2912's.

Nothing is logged into the console even if you enter a string literal.


#4

I have the same problem......


#5

I refreshed my browser and then it worked :slight_smile:


#7

yes Its works. thanks