Reading and Writing Array Elements : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

Reading and Writing Array Elements



<HTML>
<HEAD>
<TITLE> 
Reading and Writing Array Elements
   </TITLE>
</HEAD>
<BODY>
<H1>
<SCRIPT
      var myArray = new Array(4)
      myArray[0"A"
      myArray[1"c"
      myArray[2"s"
      myArray[3"d"
      var i = 3
      var theYear = myArray[i]
      document.write("It is the year of the " + theYear + ".")
   </SCRIPT>
</H1>
</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