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 trialJanette Norris
7,381 PointsPlease 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
Treehouse TeacherJanette;
In looking at your question, wouldn't we want to be doing something for every property
that is in location
?
Happy coding,
Ken
Janette Norris
7,381 PointsJanette Norris
7,381 PointsI 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
Treehouse TeacherKen Alger
Treehouse TeacherWe've all been there. Way to stick with it!
No waste of time at all.