Array / List
An ordered collection of values stored in a single variable.
Definition
An ordered collection of values stored in a single variable. Each item has a position (index) starting from 0. Lists let you store and work with multiple related values together.
Example
colors = ['red', 'blue', 'green'] — this list has three items. colors[0] gives you 'red', colors[2] gives you 'green'.
See it in context Learn how Array / List fits into the bigger picture of how software actually works.
Read the Guide →