title: Add element to array associative arrays
body: <p><a href="https://stackoverflow.com/questions/6936636/js-associative-arrays-add-new-pair">All</a> <a href="https://stackoverflow.com/questions/351495/dynamically-creating-keys-in-javascript-associative-array">examples</a> of adding new elements to associative arrays are going the "easy" way and just have a one dimensional array - my problem of understanding is having arrays within arrays (or is it objects in arrays?).</p>
  
  <p>I have the following array:</p>
  
  <pre><code>var test = [
              {
                  value: "FirstVal",
                  label: "My Label 1"
              },
              {
                  value: "SecondVal",
                  label: "My Label 2"
              }
             ];
  </code></pre>
  
  <p>Two questions: How to generate this array of associative arrays (yes... object) <strong>from scratch</strong>? How to <strong>add a new element</strong> to an existing array?</p>
  
  <p>Thanks for helping me understand javascript.</p>