programming-examples/js/Others/A string array.js
2019-11-15 12:59:38 +01:00

19 lines
294 B
JavaScript

<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>
<p>
Happy Codings :-) JavaScript Code Examples
<br>
</p>
</body>
</html>