Use alert to output an array
<html>
<head>
<title>A Simple Page</title>
<script language="javascript">
var days_of_week = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
alert(days_of_week);
</script>
</head>
<body>
</body>
</html>
Related examples in the same category