When I Create an array of objects I get undefined
<p>My <a href="http://jsfiddle.net/Hqh3b/" rel="nofollow">code</a> :</p>

<pre><code>var listaIDOrdine = new Array();
for (i = 0; i &lt; 10; i++) {
    listaIDOrdine[i] == new CoppiaIDOrdine(1, 1);
    console.log(listaIDOrdine[i]);
}

function CoppiaIDOrdine(id, ordine) {
    this.id = id;
    this.id = ordine;
}
</code></pre>

<p>but I get 10 undefined! What is wrong? I expect to have the "couple" of item at every console.log().</p>

<p>Also tried with <code>console.log(listaIDOrdine[i].id);</code> but seems that id is undefined?</p>
