• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • 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


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint