May 6, 2013

Another example of using Arrays in JavaScript

Coding

<html>
<body>
<script language="JavaScript">
var famname = new Array("Jan Egil","Tove","Hege","Stale","Kai Jim","Borge")
for (i=0; i<famname.length; i++)
{
document.write(famname[i] + "<br>")
}
</script>
</body>
</html>

No comments:

Post a Comment

Popular Posts

Views