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 Multiple Items with Arrays Two-Dimensional Arrays

Shawn Brome
Shawn Brome
3,395 Points

In this video, when I live preview the code, it does not show up on my chrome webpage. It only shows the HTML.

If you want to share a workspace you need to make a snapshot. It's the first icon in the upper right corner that looks like a camera.

4 Answers

Line 17 is missing a + between songs[i][1] and '</li>'

listHTML += '<li>' + songs[i][0] + ' by ' + songs[i][1] + '</li>';
Shawn Brome
Shawn Brome
3,395 Points

Thanks for the rapid response, but the song list still is not displaying on the webpage.

It lists for me. Here is the updated workspace:

https://w.trhou.se/ygfkx2pahu

Choose fork in the upper right corner to create a copy you can preview

Shawn Brome
Shawn Brome
3,395 Points

Kris thanks for the file. This did work for me. It turns out something was wrong with line 17 in my code but it looked exactly the same. It could not have been the same since it worked. Thanks.