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 Object-Oriented JavaScript (2015) Constructor Functions and Prototypes Making the UI Work

Elroy Mihailov
Elroy Mihailov
1,209 Points

Playlist not populating songs.

I've gone through the playlist project videos several times copying the code in the examples and my playlist does not populate with songs. I have no console errors so I'm not sure whats going on. I'm sure it's probably something like a typo somewhere but I can't seem to find it. Any help would be appreciated. Is there a way I can share my workspace?

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

Elroy Mihailov Yup there sure is! If you open your workspace on the upper right hand side you'll find a camera icon. You can take a snapshot. Click on it and then paste the link here. We'll be able to view all of your code and then (hopefully) help you with your problem! :thumbsup:

Elroy Mihailov
Elroy Mihailov
1,209 Points

Awesome..thanks. Here is the link to my workspace. https://w.trhou.se/wbagod8ldp

1 Answer

Joel Bardsley
Joel Bardsley
31,249 Points

In your app.js file, your playlist.renderInElement method never gets fired:

playlist.renderInElement = (playlistElement);

It looks like you're inadvertently overriding instead of setting the playlistElement as its parameter.

Joel is correct.

Should be:

playlist.renderInElement(playlistElement);
//Note the removal of the equals sign.

...At least I think that is what Joel is eluding at. I am new to this myself.