Unit 8 #5 Who's in Your Bracket?


#1

I don't know why I keep getting this error when I submit ... it seems to be working for everyone else:

Oops, try again. It looks like james' job was not logged 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

@digitalwhiz95807,
With

you have assigned an Array to the variable aProperty.

We want a plain string Value "job"


#3

It finally went through just as I had it.

Spoiler

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]);


#4

Delete the anwser please...