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 Loops, Arrays and Objects Tracking Multiple Items with Arrays Two-Dimensional Arrays

Enemuo Felix
Enemuo Felix
1,895 Points

I'm curious here

I have two questions here 1. How did Dave number the PlayList? 2. Although, I know it has something to do with Html which I haven't gone through but I will like to know the function of the <ol></ol> tags on this code?

1 Answer

Tom Gooding
Tom Gooding
16,735 Points

Hi Enemuo,

You have pretty much answered your own question here.

The <ol> tags are for an ordered list - by default this will show the number of each <li> element starting at 1 for the first element.

More info: https://www.w3schools.com/tags/tag_ol.asp

Enemuo Felix
Enemuo Felix
1,895 Points

Thanks so much Tom, although I honestly considered this I wasn't so sure