June 19th in Tutorials ∇, Web Coding .

USE OF ARRAY IN JAVASCRIPT

  • Delicious
  • Design Bump
  • Facebook
  • Digg
  • Reddit
  • Google
  • LinkedIn
  • Technorati
  • StumbleUpon
  • Twitter
  • RSS Feed

An array is a special kind of variable which can store many variables in it. Array in JavaScript is similar with array used in other programming languages. While using arrays in JavaScript always remember the following points:

  • Remember that an array is a special type of variable.
  • By using an array name you can store values and you can specify the position of the value where you want to store the value in the array by stating the location in brackets.

For example: newArray[4] = “Hi Friends”;

This example states that, newArray is an array and in the fourth position you like to

place the words Hi Friends.

  • You can access the value in array by the array name and location of the value. For example: newArray[4];
  • You should go through the built-in functions for arrays in JavaScript before writing the codes of your own.

Comments

  • Online Banking Saftey
    October 17, 2010
  • scrapebox rapid indexer
    February 24, 2011
  • scrapebox rapid indexer
    February 24, 2011

Leave A Comment.