title: How do I print currency format in JavaScript
body: <p>I have some price values to display in my page.</p>
  
  <p>I am writing a function that takes the float price and returns the formatted currency value with currency code too.</p>
  
  <blockquote>
    <p>like fnPrice(<code>1001.01</code>) should print <code>$ 1,000.01</code>.</p>
  </blockquote>