Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

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.

Array

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial