Who's in Your Bracket? | Help


#1

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

I cant get it right
Please help


#2

Your code looks correct. Did you have any error messages?


#3

I am having the same issue. The error message is: "Oops, try again. It looks like james' job was not logged to the console."

My code is the same as OP.


#4

It says:

Oops, try again. It looks like james' job was not logged to the console.

I thought it was OK too


#5

Refresh thy browsers and ye will bare witness to the effect of a working code.


#6

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