1var atual = 600000.00;
2
3//com R$
4var f = atual.toLocaleString('pt-br',{style: 'currency', currency: 'BRL'}).replace(".", ",");
5
6//sem R$
7var f2 = atual.toLocaleString('pt-br', {minimumFractionDigits: 2}).replace(".", ",");
8
9
1const atual = 600000.00;
2
3const valorFormatado = Intl.NumberFormat('pt-br', {style: 'currency', currency: 'BRL'}).format(atual)