A javascript number type question
<p>Why 1.toFixed(2) get syntax error while </p>

<pre><code>var a = 1;
a.toFixed(2) 
</code></pre>

<p>won't. </p>

<p>Moreover, why does 1.1.toFixed(2) run alright?</p>
