Friday, October 17, 2014

Write A program to use of Basic Array in javascript.


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>

1 comment:

Pavel Co Ebele said...

Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Training in Chennai . or learn thru Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry. JavaScript Training in Chennai