what does .toLocaleString() do code example
Example 1: tolocalestring javascript currency fixing 2 decimal places
var num = 2046430;
num.toLocaleString(undefined, {minimumFractionDigits: 2}) // 2,046,430.00
Example 2: toLocalString
Data.prototype.toLocaleString()