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 Using For Loops with Arrays

Travis Johnson
Travis Johnson
4,990 Points

Playlist will not display in Preview. Only "Musical Playlist NANMaybellene" appears. Help!

Here is a snapshot of my workspace: https://w.trhou.se/qc5g0rsxco . I had come back to this session after taking a break and when I relaunched the preview window, the playlist had vanished.

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Here's the culprit! You managed to get two characters backwards. You wrote:

listHTML =+ '<li>' + list[i] +'</li>';

and you should have this:

listHTML += '<li>' + list[i] +'</li>';

Switch around the plus and equals and see if it doesn't make a difference! Happy coding!

Travis Johnson
Travis Johnson
4,990 Points

That did it! Thanks Jennifer!