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.

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.