+ Reply to Thread
Results 1 to 2 of 2

Thread: lack of multidimensional arrays in javascript

  1. #1
    Moderator airnine is on a distinguished road
    Join Date
    Jan 2004
    Posts
    78

    Unhappy lack of multidimensional arrays in javascript

    Hi guys,

    A while ago I had to use arrays in javascript. No matter how many dimensional an array is you can always transform it into a one dimensional array, at least I think so. But the problem arises, if you have big indexes involved, for arguments sake. What I would like to know is, how do other people solve the lack of multidimensional arrays in javascript.

    Thanks for any tips.

    Airnine
    -------------------------------
    Airnine is a developer @
    www.promomedium.com
    -------------------------------

  2. #2
    Moderator airnine is on a distinguished road
    Join Date
    Jan 2004
    Posts
    78

    two-dimensional arrays exist

    well guys

    I have been plain wrong and Matt the administrator of this site kindly gave me a lesson on multidimensional arrays in javascript

    the problem is I thought of declaring an array like

    somearray = new Array[i,j]

    but that was giving two elements, element i and element j to this onedimensional array called somearray, but if I wanted two-dimensional array I should have put it like

    somearray = new Array[[i],[j]]

    and this would have given me a two dimensional array with dimensions i and j

    Matt, thanks once again

    Airnine
    -------------------------------
    Airnine is a developer @
    www.promomedium.com
    -------------------------------

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts