Data Structures

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 ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.