<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>