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) Prototypal Inheritance Building the Movie Object

Leo Marco Corpuz
Leo Marco Corpuz
18,975 Points

Question about playlist.add method

In the video, the playlist starts with an empty array. Are property/value pairs being added to the array when using the playlist.add() method?

1 Answer

Mark Lisher
Mark Lisher
3,477 Points

Yes. If you enter "playlist.songs" into the console, you can see the contents of the songs Array.