Puedes usar la siguiente funcion simple, para agregar la coma: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const addComa = (x) => { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } console.log(addComa (6500 )); <!-- end snippet -->