Is there a built in function of JavaScript to convert a string into a currency format?
For example
var a = \'1234\'; a.convertToCurrency(); // retu
Here's another approach which accounts for cents:
Money Conversion