var myNumber = 3500; console.log(myNumber.toLocaleString()); // Shows "3,500" if the user location is U.S. English
Data.prototype.toLocaleString()