This chapter examines a data structure that holds more complex data representations: an array. An array is similar to a database structure, but far more simplified in nature. Arrays are found in most every programming language, including OOP languages as well as non-OOP languages. You even hear the word array used in natural languages, such as in the phrase “We have a wide array of products,” referring to a store’s stock or collection of items to be sold.
In this chapter, you look at what an array of data is and how it is used and accessed using JavaScript, because ...