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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.