An JavaScript Arrays is a collection of homogeneous, contiguous, or related data elements that share a common name. Arrays are important data structures in programming and are used to store and manage lists of elements such as numbers, strings, objects, or other arrays. The array provides a suitable means of grouping related data.
The number, called the record index, can either refer to an individual element of the JavaScript Arrays or to the index in Square brackets after the array name.