Need help (Who's in your bracket?)


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"

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"


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.


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