<html>
<head>
	<title>new Array 1</title>
</head>

<body>
<script>
var NUM = 5;
// declare an array with NUM elements
var myArray = new Array(NUM);

for(i=0; i<NUM; i++)
   myArray[i] = i * 2;

for(i=0; i<NUM; i++)
   alert("myArray[" + i + "] = " + myArray[i]);
</script>


</body>
</html>