1)array.push( ) - This method return you to add element to an array and provides you the new length of an array and store in a variable current paper.
The document. write print the values of an element in a array after inserting.
Output of the program
Liked it! Share this Tutorial