Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You will find in your programs that you routinely need to store information in certain areas of your program. Data structures are designed to store information efficiently and provide convenient mechanisms for passing data around in your code. Different data structures have different ways of accessing and addressing the information contained within, and having a general idea of how the built-in data types work will help you choose the one that is right for your program.
An array is one of the most common data structures used in JavaScript. An array is one of the predefined objects in JavaScript and provides a convenient structure to store an ordered set of values that you can access by name or by their position within the array.