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:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: November 5, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles