Arrays / Populating arrays / Sorting in Javascript

August 1, 2007 at 5:16 am Leave a comment

<script language=”javascript”>
myarray=new Array(2);               //A array intialized of size 2
for(i=1; i<3; i++)                 //loop goes here
document.write(myarray.sort());         //sorting array elements


Entry filed under: Javascript.

Formating / multi formating strings in javascript Applying background to Iframe [IE / Firefox /Safari / Opera

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

Blog Stats

  • 720,244 hits

%d bloggers like this: