Creating an Array and Accessing Its Elements : Introduction : Array JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Array » Introduction »

 

Creating an Array and Accessing Its Elements

















<html>
    <h2>Creating and Accessing Arrays</h2>
    <script language="JavaScript">
    <!--
    numArray = new Array(4,6,3);

    document.write("[0]=",numArray[0],"<br>");
    document.write("[1]=",numArray[1],"<br>");
    document.write("[2]=",numArray[2]);       
    //End Hide-->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Array
» Introduction