image
MDN Web Docs
Number.prototype.toLocaleString() - JavaScript | MDN
The toLocaleString() method of Number values returns a string with a language-sensitive representation of this number. In implementations with Intl.NumberFormat API support, this method simply calls Intl.NumberFormat.