Stack array of methods

push method returns the length of the array is modified

pop method returns the last element removed

shift method of removing an element from the front end of the array, return the element to be removed

unshift add a return length of the array element in the array front end

 

reverse the array flashback

sort in ascending order

 

The difference between the slice and splice

Guess you like

Origin www.cnblogs.com/flyerya/p/11306102.html