![]() |
JavaScript Arrays![]() ![]() ![]() ![]() ![]()
Array is a special type of JavaScript object. Arrays are used for storing data in a contiguous manner.For example if you want to store the names of courses taught at Pentasoft you can use arrays. The syntax for declaring an Array is:
course = new Array(3). To assign values to an array the following statements can be used: course[O] = "E commerce" course[1] = "AIPP" course[2] = "VisaBanking" The following example illustrates how to declare an array and to write array elements to the docu ment.
<html> course[1]="AIPP" course[2]="VisaBanking"
|
|
Domain NamesJAVASCRIPT Types of Variables Arrays Data Type Conversion Arithmetic Operators Logical and Comparison Operators Assignment Operators Ternary Operators Operator Precedence Assignment Statements If StatementsSwitch Statement Function Call Statement Try, Catch and Throw Statements The For Loop Java While Loop The Do While Loop Break and Continue Statements
String Methods Array Methods Objects, Methods and Properties The Boolean Object The Date Object The Global Object The Math Object
The Number Object Color Constants Hierarchy of Browser Objects Window Object Document Object History Object Navigator Object Buttons Check Box Radio Buttons Text FieldsWorking with Image Maps Creating Simple Animation Hidden Fields Working with Style Sheets An Example of HTML Graphics Replacement The <SPAN> Tag Positioning of HTML Content The <LAYER> TagWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |