October 2014
Intermediate to advanced
218 pages
4h 38m
English
An array is the simplest memory data structure. For this reason, all programming languages have a built-in array data type. 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 a sequence of values that are all of the same data type. Although JavaScript allows us to create arrays with values from different data types, we will follow the best practices and consider that we cannot do that (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 ...
Read now
Unlock full access