Summing a number recursively and displaying it : <p>I searched for a solution to this problem quite a bit, but couldn't reach a solution. Would be great if someone can point me in the right direction.</p>

<p>Ok, so suppose there's a number :-</p>

<pre><code>0.001
</code></pre>

<p>What I want to do is, <em>add</em> 0.001 (the same number) to it again and again ever second and also display the change dynamically. </p>

<p>So :-</p>

<pre><code>second 1 :- 0.001
second 2:- 0.002
second 3 :- 0.003
</code></pre>

<p>This has to keep running for <em>1 hour</em> and I should be able to see it's value changing dynamically on my web page. How can I achieve this? I did quite a research on using <em>countup.js</em>, but no result. I thought of a solution to use ajax, but this would cause a lot of load.
Whats the best that I can do here?</p>
