|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
get array random strings
hi,
i'm new using arrays so i'm having some trouble: i have 3 arrays (array1, array2, array3) - all with same number of strings. i'm using some function to get the first array randomly, but i don't know how to get the exact parallel string in the other arrays. something like this: Code:
array1 = ["Japan", "USA", "Spain"] array2 = ["Tokyo", "Washington", "Madrid"] array3 = ["Japanese", "English", "Spanish"] any ideas? |
|
#2
|
||||
|
||||
|
You might be better to organize it like this:
Code:
array1 = ["Japan", "Tokyo", "Japanese"] array2 = ["USA", "Washington", "English"] array3 = ["Spain", "Madrid", "Spanish"] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > get array random strings |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|