Wierd Problem


#1



https://www.codecademy.com/courses/objects-ii/0/5?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. Do you have the variable 'aProperty' between brackets?

The console says exactly what it should say.


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

// set to the first property name of "james"
var aProperty = james.job;

// print the value of the first property of "james" 
// using the variable "aProperty"
console.log(aProperty)


#2

If the console shows programmer then it will appear correct, however it is not what the instructions ask for.

console.log(aProperty)

should output job so that,

console.log(james[aProperty])

will output, programmer.


#3

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