Array with a numeric parameter and assign data to it : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

Array with a numeric parameter and assign data to it



<html>
<body>

<script type="text/javascript">
var nameArray = new Array(6)
nameArray[0"1 item"
nameArray[1"2 item"
nameArray[2"3 item"
nameArray[3"4 item"
nameArray[4"5 item"
nameArray[5"6 item"

for (i=0; i<6; i++){
    document.write(nameArray[i"<br>")
}
</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