Code is correct but won't work?


#1


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

Ok your code is correct not sure why it is not passing. Try refreshing the browser or clearing cookies?


#3

Sometimes when you do those exercises with the app, it doesn't work. So if you were using the app just try doing it with the website. It worked for me.


#4

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