I already know how to separate the numbers of three in three, backwards, with regular expression in JavaScript .
But I would like to know if there is a simpler solution in JavaScript, and without the use of regular expression.
For example:
1000; // 1.000
10000; // 10.000
10000000; // 10.000.000
How could I do this?