Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How does js delete the first element in an array
How does js delete the first element in an array
Array? Object method

—————————————————————————————————————

Concat()| Concat two or more arrays and returns the result.

Join()| puts all the elements in the array into a string. Elements are separated by the specified delimiter.

pop()? | Deletes and returns the last element of the array.

Push()| Adds one or more elements to the end of the array and returns a new length.

Reverse ()? | Reverses the order of the elements in the array.

shift()? | Deletes and returns the first element of the array.

slice()? | Returns the selected element from an existing array.

Sort()| Sorts the array elements.

Splice()| Deletes an element and adds a new element to the array.

ToSource()| Returns the source code of an object.

ToString()| Converts an array into a string and returns the result.

ToLocaleString()| Converts an array to a local array and returns the result.

unshift()? | Adds one or more elements to the beginning of an array and returns a new length.

valueOf()? | Returns the original value of an array object.