Using the Methods of the Array object : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

Using the Methods of the Array object



<HTML>
<HEAD>
<TITLE>Using Arrays</TITLE>
<SCRIPT LANGUAGE="JavaScript"><!--
// --></SCRIPT></HEAD>
<BODY>
<H1>Using Arrays</H1>
<SCRIPT LANGUAGE="JavaScript"><!--
myArray = [012345678910]
document.write("myArray: "+myArray+"<P>")
document.write("myArray.toString(): "+myArray.toString()+"<P>")
document.write("myArray.join(':'): "+myArray.join(':')+"<P>")
document.write("myArray.reverse(): "+myArray.reverse()+"<P>")
document.write("myArray.sort: "+myArray.sort())
// --></SCRIPT>
</BODY>
</HTML>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Array