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

Alex Flores
Alex Flores
7,864 Points

Object-Oriented JS - Making the UI Work

For this project (developing a playlist), I was wondering if instead of rendering the playlist each time the user clicks PLAY, NEXT, or STOP, can we instead add and remove the class CURRENT accordingly?

What is the benefit of rendering as opposed to just adding and removing the class?

Ronnelle Torres
Ronnelle Torres
5,958 Points

Exactly! That's my thoughts on this too! But I think that would be hard.. I've tried modifying this project but I cannot successfully just update the element with the class current. Can you please share what you did on this sir? Thanks! :)