June 2016
Beginner
314 pages
6h 19m
English
An array is the simplest memory data structure. For this reason, all programming languages have a built-in array datatype. JavaScript also supports arrays natively, even though its first version was released without array support. In this chapter, we will dive into the array data structure and its capabilities.
An array stores values sequentially that are all of the same datatype. Although JavaScript allows us to create arrays with values from different datatypes, we will follow best practices and assume that we cannot do this (most languages do not have this capability).
Let's consider that we need to store the average temperature of each month of the year of the city that we live in. We could use something ...
Read now
Unlock full access