Jquery Arrays

Following are the basic array concepts:

Create Array :

An array is a special variable, which can hold more than one value at a time.We can create array either by using Array Constructor or array literal.

Access Array :

An array value can be accessed by its index value.

Array Objects :

In Javascript, Arrays are special type of objects, as the members of the array could be accessed by using the names just like objects.

Array Length :

The length property of an array returns the length of an array.

Add array element :

To add element to an existing array following methods are used : Array push method, Add element using length property, Add element using array index.

Ask Questions

Ask Question