A string array
<html>
<body>
<script type="text/javascript">
var nameArray = new Array("Name 1","Name 2","Name 3","Name 4","Name 5","Name 6")
for (i=0; i<nameArray.length; i++){
document.write(nameArray[i] + "<br>")
}
</script>
</body>
</html>
Related examples in the same category