Jump to content

How to create array in array!?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Stasonix

Stasonix

    Learning Programmer

  • Members
  • PipPipPip
  • 82 posts
  • Programming Language:C++, PHP, JavaScript, Delphi/Object Pascal, Pascal
  • Learning:C++, PHP, JavaScript, Delphi/Object Pascal
it must be something like:
 Question[1] = "Kto takoj Backham?";

 Question[1][1] = "Bascetbolist";

 Question[1][2] = "Figurist";

 Question[1][3] = "Footbalist";

 Question[1][4] = "Cosmonaut";

 Question[1][1][1] = 0;

 Question[1][1][2] = 0;

 Question[1][1][3] = 1;

 Question[1][1][4] = 0;


#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
This is called a multidimensional array and is fairly simple to do in Javascript.
JavaScript Two Dimensional Arrays
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users