Javascript if number < 10 add a "0"
<p>I made a simple countdown with javascript, here you can see a example:<a href="http://jsfiddle.net/PCwx8/" rel="nofollow">http://jsfiddle.net/PCwx8/</a></p>

<p>It simply counts to today midnight. May problem is that i simply want that javascript adds a "0" to the numbers that are minor then 10. I have a idee like :</p>

<pre><code>if (i&lt;10)
{
i="0" + i;
 }
return i;
</code></pre>

<p>But i dont know if its an integral or simply a number? Thanks, for help, i normally have nothing to do with javascript, so please understand! </p>
