Need help (Who's in your bracket?)


#1

I have print james's job using bracket notation and aProperty. but when I code this:

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"
james[aProperty];

it gives me this error message: Oops, try again. It looks like james' job was not logged to the console.
however, the console clearly prints "programmer"


#2

Or so it would appear, however that is not done by our code. You need to include a console.log() statement with james[aProperty] as the argument.


#3

I am also having the same problem, even when using console.log(james[aProperty]);


#5