Format number to use thousands separator JavaScript


Description
Format number to use thousands separator.


var number = 123456.789;
console.log( number.toLocaleString("es-ES") );  // "123.456,789"

SEE ALSO