β Computer Science
Lists of things (arrays)
See it
A shelf with numbered slots
- An array is an ordered list:
["apple", "banana", "grape"]. - Each slot has a number called its index.
- Heads up: counting starts at 0, not 1!
apple
index 0
banana
index 1
grape
index 2