toFixed hanging my code
<p>I am taking practice exercises and ran into this issue.</p>

<p>This problem asks:</p>

<blockquote>
  <p>“Prompt for a number greater than 1 and to 4 decimal places. Format
  and write the number to the page displaying with only 2 digits past
  the decimal point using the toFixed() method. (e.g.  12.35, not
  12.3453) </p>
  
  <p>Since this method is very new, it doesn't work in older browsers. See
  if you can get only 2 digits past the decimal point to show without
  using toFixed().”</p>
</blockquote>

<p>I found the answer to the hard part through the archives here, Math.round(n*100)/100. Thanks for that. But when I tried the “easy” way, I get nothing. My work is at <a href="http://jsfiddle.net/QYBHU/" rel="nofollow">jsFiddle</a>, but in a nutshell:</p>

<pre><code>var num = prompt("Give me a number greater than one, with 4 decimal places.");
var num2 = prompt("Great! Do one more, please!");


num = Math.round(num*100)/100;
num2 = num2.toFixed(2);


alert(num);
alert(num2);
</code></pre>

<p>The exercise did not ask for a second number, but I wanted to use both methods in separate incidences. When I run this it does not alert anything. I know that it is hanging at the toFixed statement, because when I comment it out it alerts both as expected, num1 at 2 decimal places, and num2 as it was prompted (i.e. 1.2345). </p>

<p>So here is what I have done so far:</p>

<p>Mozilla’s developer page shows this format: n.toFixed(1);// Returns "12345.7": note rounding</p>

<p>Seems exactly what I am doing.</p>

<p>I copied and pasted all of it in my Sublime, making sure that I called the .js file just before the closing body tag, to make sure it wasn’t some loading problem I don’t understand.</p>

<p>Plus all sorts of little tweaking.</p>

<p>Sorry to keep asking these questions, but since I am self-study, I have where else to go! </p>
