8 JavaScript Array methods
- Push();
The push() Method adds new elements to the end of an array, and returns the new array length.
2.slice();
The slice() method selects a part of an array. and returns the new array.
3. toString()
The toString method converts an array to a string.
4.shift()
The shift() method removes the first element of an array.
5.map()
The map() method creates a new array with the results of calling a function for every array element.
6.pop()
The pop() method removes the lest element of an array
7.filter()
The filter() method creates an array filled with all array elements that pass a test .
8.includes()
The includes() method determines whether an array contains a specified element.