title: jQuery: how to make an array with a loop
body: <p>I am trying to create an array in jQuery, which is filled through a loop.</p>
  
  <pre><code>count = jQuery('#count_images').val();
  </code></pre>
  
  <p>With the above code I get an integer value (such as 5, for example).
  What I would like to know, is how I can do something like this in jQuery:</p>
  
  <pre><code>int arrLength = count;
  string[] arr1 = new string[arrLength];
  int i = 0;
  for (i = 0; i &lt; arr1.Length; i++){
      arr1[i] = i;
  }
  </code></pre>
  
  <p>So in the end my array for example 5 would look like this: <code>[1,2,3,4,5]</code>.</p>