Arrays in JavaScript

The array object allows you to store multiple values in one variable. It stores data in sequence form having same type. JavaScript arrays can store any valid value, including strings, numbers, objects, functions, and even other arrays, thus making it possible to create more complex data structures such as an array of objects or an array of arrays.