Answers for "js usd format"

0

javascript currency format

const formatter = new Intl.NumberFormat('en-ID', {
  style: 'currency',
  currency: 'IDR'
}).format(10000000)
.replace(/[IDR]/gi, '')
.replace(/(\.+\d{2})/, '')
.trimLeft()


console.log(`Rp ${formatter}`)
Posted by: Guest on January-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language