How to set Price Format using javascript Magento 2.

Format a Price Using Javascript(JS) in Magento 2 for display a price with proper formating.

You have to use ‘Magento_Catalog/js/price-utils’ priceUtils Js Object in your javascript file to set format a price using javascript.

priceUtils.formatPrice(amount, priceFormat, showSign) used to format a price.

amount = required field
priceFormat = Optional Object
showSign = Optional (Show sign like positive+/negative-)

call function from template or js file,

var amount = 99;

You can change priceFormat object based on your requirement.