3. Develop JavaScript to implement Array functionalities
<!DOCTYPE HTML>
<html>
<head>
<title>Array Demo</title>
</head>
<body>
<strong>
<script type ="text/javascript">
a=new Array(5);
for(i=0;i<5;i++)
{
a[i]=i;
document.write(a[i]+"<br>");
}
Document.write("Another way of initialization"+"<br>");
b=new Array (11,22,33,44,55);
for(i=0;i<5;i++)
{
document.write("Yet another way of initialization"+"<br>");
var c=[100,200,300,400,500];
for(i=0;i<5;i++)
{
document.write(c[i]="<br>");
}
</script>
</strong>
</body>
</html>
<html>
<head>
<title>Array Demo</title>
</head>
<body>
<strong>
<script type ="text/javascript">
a=new Array(5);
for(i=0;i<5;i++)
{
a[i]=i;
document.write(a[i]+"<br>");
}
Document.write("Another way of initialization"+"<br>");
b=new Array (11,22,33,44,55);
for(i=0;i<5;i++)
{
document.write("Yet another way of initialization"+"<br>");
var c=[100,200,300,400,500];
for(i=0;i<5;i++)
{
document.write(c[i]="<br>");
}
</script>
</strong>
</body>
</html>
Practical Lists with Source Code :
- Writesimple JavaScript with HTML for arithmetic expression evaluation and messageprinting.
- Develop JavaScript to use decision making and looping statements.
- Develop JavaScript to implement Array functionalities.
- DevelopJavaScript to implement functions.
- DevelopJavaScript to implement strings.
- Createa webpage using form elements.
- Createa webpage to implement form event Part-I.
- Createa webpage to implement form event Part-II.
- Developa webpage using Intrinsic Java Function.
- Developa webpage for creating session and persistent cookies observe the effects withBrowser cookie settings.
- Developa webpage for placing the window on the screen and working with child window.
- Developa webpage for validation of form fields using regular expressions.
- Create a webpage with Rollovers Effect.
- Developa webpage for implementing menus.
- Developa webpage for implementing Status bars and Web Page Protection.
- Developa webpage for implementing Slideshow, Banner.