Caffeinated Coder
Book an appointment
Lesson 08 · Working with data

Arrays

An array is one value that holds a list of values, in order. Follow a seven-line script about fruit: make an array with square brackets, read items by their index (counting from 0), ask for its length, change one item, push a new one on the end, find the last item, and visit every item with a for...of loop.

9 min8 steps5 questionsBeginner
Fig 8 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.