Number Formatting in Native JS

Mudaser Ali
1 min readAug 18, 2020

--

If you want to format a number in Native JS then this article is for you.

Number.prototype.toLocaleString()

In JS Number class provide us a very use method .toLocaleString(); it returns returns a string with a language-sensitive representation of a number

For example

--

--

Mudaser Ali

{ name: Mudaser Ali aka SMAK, skills: NoBody is pErfect i M nObOdy, passion: {love: [programming, photography]} }