5. Who's in your Bracket?


#1

Need Help, my code works but it is saying I have done it wrong and I am getting an error,
var james = {
job: "programmer",
married: false
};

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

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

This is what I wrote, here is a screenshot of what it is saying :stuck_out_tongue:
https://gyazo.com/553264ff361d80df30fddeed8ae6d172
^^Bad quality but you can understand it^^

Thanks :confused:


#2

aProperty should equal "job", then you should print to the console (using console.log) james[aProperty]