JavaScript 101 /arrays

Arrays

Arrays allow you to store multiple values in a single variable. They are like lists that can hold different types of data, such as numbers, strings, or even other arrays.

You can also create an array by using square brackets [] and separating the values with commas. You can access the values in an array using their index, which starts at 0. The index goes between square brackets., like so: arrayName[0]

Let's manipulate some arrays

Some array methods change the original array (like push, pop, splice), while others return a new array or value without changing the original (like slice, concat, join).

The basics

Intermediates

Gather info about arrays

Conclusion/recap

Next: Recap