so lets say you want to create an array in javascript and then be able to display each value for each array element, its very simple, there are many ways to create arrays in javascript, here are some examples:

regular array example (add an optional integer argument to control array's size)
var Colors=new Array();
Colors[0]="red";
Colors[1]="green";
Colors[2]="blue";

this is a condensed array:
JAVASCRIPT CODE:
var Colors=new Array("red","gree","blue");


example literal array
JAVASCRIPT CODE:
var Colors=["red","green","blue"];


now try it yourself, we put together a sample code:
JAVASCRIPT CODE:
<script type="text/javascript">


var Colors=new Array(); // regular array (add an optional integer
Colors[0]="red"; // argument to control array's size)
Colors[1]="green";
Colors[2]="blue";

document.write(Colors[0]);
</script>