Whats wrong here?


#1


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


The error message says, "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

Code is fine, probably a small glitch with your browser.

  • Try refreshing the page
  • Try restarting your browser
  • Try using another browser
  • Try logging out / back in

#3

Thank you. It worked after signing out and then again signing in.


#4

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