How to create a dynamic array in Javacript?
<p>I need to create the following array dynamically, for example:</p>

<pre><code>var data = { point: [
              { x:5, y:8 },
              { x:8, y:10},
              ]};

 console.log(data.point[0].x);   // 5  n=0
 console.log(data.point[1].y);   // 10 n=1
</code></pre>

<p>At some point my application needs to expand the array to more than 2 items (n=0, n=1). Please let me know how to do that (i.e. n = 9 ).  Thank you.</p>
