title: How to format numbers as currency strings
body: <p>I would like to format a price in JavaScript. I'd like a function which takes a <code>float</code> as an argument and returns a <code>string</code> formatted like this:</p>
  <pre><code>&quot;$ 2,500.00&quot;
  </code></pre>
  <p>How can I do this?</p>