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 enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial