Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Tracking Data Using Objects Review Loops, Arrays, and Objects

Please help with a quiz question over JavaScript Loops, Arrays and Objects. I must be brain-dead today- thank you!

Complete the code below to display every property and value of an object named location:

____(property ______ location) { document.write( '<p>' + property + ' : ' + location[property] + '</p>' ); }

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Janette;

In looking at your question, wouldn't we want to be doing something for every property that is in location? :wink:

Happy coding,

Ken

I don't know why that was difficult an hour ago, but I had lunch, read your helpful answer and now, wonder why that was not obvious to me...
Sorry to waste your time, but thanks a million!
I can move on now.... :)

Ken Alger
Ken Alger
Treehouse Teacher

We've all been there. Way to stick with it!

No waste of time at all.