Storing many values
A single variable holds one value, but most programs deal with lists of things: users, orders, scores. HTML provides a built-in collection type — usually called an array or list — that holds many values under a single name and indexes them with a number starting at 0.
<ul>
<li>JavaScript</li>
<li>Python</li>
<li>HTML</li>
<li>CSS</li>
</ul>Common operations
You will spend a lot of time looping over collections, adding items, removing items, searching for an item, sorting, and transforming each element into something else. Learn your language's standard library helpers for these tasks — they are faster and clearer than hand-written loops.
Other collection types
Beyond arrays, HTML usually offers sets (no duplicates), maps (key → value pairs) and queues / stacks. Choosing the right collection for the job makes your code shorter and your program faster.