var arr=new Array(5);
document.write("Array arr contains(Before pop())="+arr+"</br>");
document.write("Array arr contains(After pop()) ="+arr+"</br>");
<h2>Example of array pop() method</h2>
Poped last two elements of array "arr"
Output of this example is as follows:
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.