Skip to content
Lydia Hallie theavocoder
Course contents
Complete JavaScript / Lesson 05

Arrays

You can store a sequence of any type of data in an array. Arrays can look like:

Arrays diagram 1

Arrays are used to store the same type of data. With array methods, you can manipulate, add, loop over, or get data out of your array. The fastest way to get access to an element in an array is by using its index.

Indexes of arrays start at 0, so the very first element in an array has index 0. You can access this element by using the array’s name, followed by brackets.

Arrays diagram 2

Let’s quickly get to array methods to see what wonderful things we can do with our lists of data.

References and further reading