Is it possible that Javascript keep same expression value?
<p>I was wondering if javascript calculate (again) same expressions as it encounters them  : </p>

<p>for example : </p>

<p><code>alert(new Date().getTime()+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1+1-1-new Date().getTime())</code></p>

<p><code>output : 0</code></p>

<p>it's hard to test it like it but I thought that all the <code>+/-1</code> will take it some time ( a tick) so I could see a difference.</p>

<p>But the answer is 0.</p>

<p>So  , </p>

<p>Is it zero because its just too fast or because JS treats the first new Date() as the same as the later one ? </p>
