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 Objects Loop Through Objects Display an Array of Objects on the Page – One Solution

jaylen wakefield
jaylen wakefield
1,550 Points

Directory tab

The console is giving me undefined as I am trying to see the names from the pets folder. Can someone help me out?

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

Hey jaylen wakefield !

It's difficult to tell exactly what would be causing this without seeing your code. Could you please provide a snapshot of your Workspace?

If you need a refresher on how to do that, you can check out this video - Previews and Snapshots.

I would double check your HTML link is correct and as it is in the video first and make sure the 2 links are in the correct order. You'll want the link to pets.js first, or on top, of the other javascript link so that it has access to it's data.

If that's not it, we'll need to see the code though as it could be a few different things going on. Thanks!