8 JavaScript Array methods

Sonjoy Chandra Barman
2 min readOct 1, 2020
  1. 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.

--

--

Sonjoy Chandra Barman

I am excited to continue my career as a full-stack developer and am always looking for new challenges and opportunities to grow and learn.