Javascript Arrays Tutorial
Array
/* Array is similar to variables but it
is used to store many values
values of array can be accessed by calling their location in an array
*/
var myarray = new Array()
myarray[0] = "this is array value one"
myarray[1] = "this is array value two"
myarray[2] = "this is array value three"
myarray[3] = "this is array value four"
document.write(myarray[0])
document.write(myarray[1])
document.write(myarray[2])
document.write(myarray[3])
document.write(myarray[0] + "<BR>" + myarray[1] + "<BR>" + myarray[2] + "<BR>" + myarray[2])
<script type="text/javascript">
/* Array is similar to variables but it
is used to store many values
values of array can be accessed by calling their location in an array
*/
var myarray = new Array()
myarray[0] = "this is array value one"
myarray[1] = "this is array value two"
myarray[2] = "this is array value three"
myarray[3] = "this is array value four"
document.write(myarray[0])
document.write(myarray[1])
document.write(myarray[2])
document.write(myarray[3])
document.write(myarray[0] + "<BR>" + myarray[1] + "<BR>" + myarray[2] + "<BR>" + myarray[2])
</script>

