(new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' })).format(99999);
new Intl.NumberFormat
- instantiates JS native formatter (docs)style: 'currency', currency: 'USD'
- pick currency style and set the currency itself99999
- number we're going to format as money
link_youtube: https://youtu.be/-aOFjol0EbU