Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 433 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 433 Bytes

Arrays

Arrays are a fundamental part of programming. An array is a list of data. We can store a lot of data in one variable, which makes our code more readable and easier to understand. It also makes it much easier to perform functions on related data.

The data in arrays are called elements.

Here is a simple array:

// 1, 1, 2, 3, 5, and 8 are the elements in this array
var numbers = [1, 1, 2, 3, 5, 8];