How to iterate over arrays and objects in JavaScript
<pre><code>var points = [{ x: 75, y: 25},{ x: 75+0.0046, y: 25}];
</code></pre>

<p>How would I iterate through this. 
I want to print x and y value first, then 2nd and soo on....</p>