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

Core Objects

Core Objects

The core objects are objects that aren't associated with the Java Script object hierarchy and are available to both client-side and server-side applications.

Array

Description: An array is an object that lets you store sets of data, with each element of the data set stored in its own unique position, which in turn can then be referenced or retrieved.

Syntax for creating:

new Array(arrayLength); or

new Array(element0, element1, …, elementN);

Parameters:

arrayLength—The desired initial length of the array.elementN—This is the initial set of values that will be stored in the array. The array length will be set to the number of arguments.

Implemented in: Navigator 3.0

Properties: index, input, length, prototype

Methods: concat, join, pop, push, reverse, shift, slice, splice, toString, unshift


  

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