March 2021
Beginner
404 pages
5h 47m
English
So far, we’ve met primitive data types such as strings, numbers and Booleans. But what if we want to store a whole collection of values in a single variable? For example, we might have a list of prices that we want store in the same place. Composite data types can be used to collect primitive values in a structured way.
Programming languages use a variety of different data structures to store values, but one of the most common is an array.
In this chapter, we’ll be covering the following:
An array is an ordered list of values. For example, consider the following shopping list:
Read now
Unlock full access