Who's in Your Bracket? (SOLVED)


#1


What's wrong with this code? I don't understand:

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

Please, post error message. Your code looks good for me.


#3

Maybe you have to remove extra space on line 7?


#4

Also tried removing the space


#5

I've tried your code and it works. Try refresh browser and pass this lesson once more.


#6

Refreshing the page didn't work but closing and re-opening did.
Thank you


#7

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