How to format a money value (e.g. price) in JavaScript?

Use the priceFormat() method of the Magento_Catalog/js/price-utils class:

A usage example:

See also: