<<<<<<< HEAD Method Description
concat() joins two or more arrays and returns a result
includes() checks if an array contains a specified element
push() adds a new element to the end of an array returns the new length of an array
unshift()
adds a new element to the beginning of an array and returns the new length of an array
pop()
removes the last element of an array and returns the removed element
shift()
removes the first element of an array and returns the removed element
sort()
sorts the elements alphabetically in strings and in ascending order
slice()
selects the part of an array and returns the new array
splice()
| Method | Description |
|---|---|
| concat() | joins two or more arrays and returns a result. |
| includes() | checks if an array contains a specified element. |
| push() | aads a new element to the end of an array and returns the new length of an array. |
| unshift() | adds a new element to the beginning of an array and returns the new length of an array. |
| pop() | removes the last element of an array and returns the removed element. |
| shift() | removes the first element of an array and returns the removed element. |
| sort() | sorts the elements alphabetically in strings and in ascending order. |
| slice() | selects the part of an array and returns the new array. |
| splice() | removes or replaces existing elements and/or adds new elements. |
f1f3a02 (initailTest1)