Bug in Lesson 5 - my code works but flagged as error


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/objects-ii/0/5?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

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]);

<do not remove the three backticks above>

#2

I had the same problem too! I was reading through the Q&As for that specific lesson and they said to restart the browser. I did just that and it worked! Maybe switching browsers will help too. Hope you figure it out :+1:!


#3

Restarting worked, thanks.


#4

This topic is solved.