Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Jaap Steenis
Courses Plus Student 1,977 PointsReferencing property in object through key
In my Chrome browser, the assignment of a property through a key value doesn't work. What is the reason of that ? Example is done exactly the same way as shown by Jim.
var key="Last_name"; console.log(me[key])
Last_name is a valid property assigned, I am able to call this in the normal way
1 Answer

Jaap Steenis
Courses Plus Student 1,977 PointsSolved it :-) re-instantiated the object and it worked