5. Who's in Your Bracket?



I'm not sure what I'm doing wrong here. I was flying through all my exercises, getting them all right, but this one says I'm wrong. I rechecked my code multiple times.

Step 1) "In line 7, set aProperty to a string of the first property in james (ie. the job property)."
Okay, I did that with

var aProperty = "job";

Step 2) "Then print james's job using bracket notation and aProperty."
Okay, I did that with


Here is all of my code in a Link for whatever weird reason you have , & below :

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"

// also tried using just
// james[aProperty];
// by itself with no luck


Hi try to refresh the page... Because your code is right


DOH. facepalm

Thank you Wizmarco. :slight_smile:


thanks man:slight_smile:


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