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:
Posted on: November 5, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles