Write A program to use of Basic Array in javascript.
Code : basic-array.html
<html>
<body>
<script type="text/javascript">
var network=["LAN","WAN","MAN"];
document.write(network[0] +" Types of network. <br>");
document.write(network[1] +" Types of network. <br>");
document.write(network[2] +" Types of network. <br><br><br>");
varcs=[];
cs[0]="DATA";
cs[1]="SIGNAL";
cs[2]="SIGNALING";
cs[3]="TRANSMISSION";
document.write(cs);
document.write("<BR><BR><BR>");
var topology=["Bus","Ring","Star","Mash"];
for(var t in topology)
{
document.write(topology[t] + " is topology <br> ");
}
</script>
</body>
</html>
No comments:
Post a Comment