function formatCurrency(number) {
    return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(number);
}
const amount = 12345.67;
console.log('Formatted Currency:', formatCurrency(amount));