R
R
Ruslan Tilyaev2020-04-30 13:22:14
JavaScript
Ruslan Tilyaev, 2020-04-30 13:22:14

How to style string output (price)?

How to withdraw the amount in this form: 120,000 rubles? To be pleasing to the eye. I have this view: 120,000 rubles.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stimulate, 2020-04-30
@Heckfy325

alert(new Intl.NumberFormat('ru-RU').format(12000));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question