(new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' })).format(99999);ctrl + c
new Intl.NumberFormatinstantiates JS native formatter (docs) | style: 'currency', currency: 'USD'pick currency style and set the currency itself |
99999number we're going to format as money |