Array function and purpose of interpretation

1. var arr = [];     Array: [] . Empty array Console log is Array (0)   

  Function: Defines an empty array for receiving the

2. var str = ''   empty string

  Function: Defines the empty string to receive the  

3. arr [arr.length] = 'added at the end of the array'

 arr.push ( 'add') ----  common

4. arr.splice (0, 1); from 0 to delete a

5. arr [i] of each array    when compared with the

 arr [0] of the first array    with the comparison

6. var i = 0 to i is an initial value of variable

    var arr = new Array(‘1’, ’2’)

7. array using: CRUD

 console.log (Arr [0])   the printing of the 0 item

 console.log (arr.length) can be found in the length of the array

 

And the maximum length of the array 8. The subscript relationship: length. 1-

  Review: ARR [0] .name = 'ARR of 0 item name ';

 

Guess you like

Origin www.cnblogs.com/luhu123/p/11225103.html