title: javascript create empty array of a given size
body: <p>in javascript how would I create an empty array of a given size </p>
  
  <p>Psuedo code:</p>
  
  <pre><code>X = 3;
  createarray(myarray, X, "");
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>   myarray = ["","",""]
  </code></pre>