5. Who's in Your Bracket? - stuck and need help!


#1


I'm not sure what i'm doing wrong. Can anyone help please??


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

Your code works fine, but what kind of error do you get?


#3

Am having the same problem.

My error is:

"It looks like james' job was not logged to the console."


#4

I found that by removing the white space inside the initalization of the james object,
ie:

var james = {
job: "programmer",
married: false
};

that this started working.


#5

Had the same issue. No matter what I did, I got the error message:

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

I refreshed the page, clicked save & submit and voila, it worked!


#6

lol ya .. refresh work for me :wink:


#7

Turns out I just needed to refresh the page too!


#8

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