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 trialJohn Lane
1,697 PointsWhy does "arr" reference the "playlist" array? Is that the nature of "arr" itself or is it assigned?
Guil uses "arr" to reference the array at the top of the page but I don't ever see him assign the array to "arr".
1 Answer
Steven Parker
231,236 PointsThe createListItems function uses "arr" as the parameter name. So within the function definition, the array is referred to as "arr".
It doesn't get associated with the actual array until the function is called with createListItems(playlist)
later in the code.