javascript date reference or value
<p>I'm storing a date in a global variable called <code>MyDate</code>. If I write this:</p>

<pre><code>var TheDate = MyDate;

for (var i = 5; i &gt; 0; i--) {
   TheDate = TheDate - i;
}
</code></pre>

<p>Am I just changing <code>TheDate</code> or am I also changing <code>MyDate</code>?</p>

<p>Thanks.</p>
