Javascript basic tutorial array

JavaScript Array (array)

The role of an array object is to use separate variable names to store a series of values.

How to create an array:

We have the following methods

The first one:

var arr = new array();

arr[0]=1;

arr[1]=2;


##Second type:

var arr = new array(1,2);


The following code

    数组 


Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!