Reference array value by index : Array Index : Array JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Array » Array Index »

 

Reference array value by index

















<html>
<head>
<title>A Simple Page</title>
<script language="javascript">
<!--
var days_of_week = new Array(7);

days_of_week[0"Sunday";
days_of_week[1"Monday";
days_of_week[2"Tuesday";
days_of_week[3"Wednesday";
days_of_week[4"Thursday";
days_of_week[5"Friday";
days_of_week[6"Saturday";
alert(days_of_week[2]);

//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Array
» Array Index