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:
Liked it! Share this Tutorial