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 Arrays Loop Through Arrays Loop Through an Array

Manoj Gurung
Manoj Gurung
5,318 Points

few question = what is arr ? Should we learn html before learning this.

as above

1 Answer

Rick Gleitz
Rick Gleitz
47,197 Points

Hi Manoj,

arr is just a parameter in the function for the any array that can be later passed into it (playlist in this case). And, yes, it would be helpful to have learned HTML before this (but not totally necessary if you are able to follow the discussion), but if you haven't, you can just start another course on it to get up to speed. You can do more than one course at a time, especially if they are on very different types of subject matter. The "normal" path in learning to make websites is: HTML, CSS, and then JavaScript. A good way to do this is through the Treehouse track Front End Web Development (https://teamtreehouse.com/tracks/front-end-web-development).

Hope this helps.