Here is the example code for the HTML file as given below:
var arr = new Array(5);
document.write("<b>Array is </b>=>"+arr.valueOf()+"<br>");
Implementation of valueOf() method on array object
Output of the example:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: November 10, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles