|
March 19, 2002 Using Associative Arrays Tips: March 2002
Yehuda Shiran, Ph.D.
|
|
Like most modern programming languages, JavaScript supports associative arrays. The index in associative arrays is a string (including blanks). For example, the following code initializes a two-element associative array:
Let's test the value of the first and second elements.
People who read this tip also read these tips: Look for similar tips by subject: |