how to add comma to numbers iwith js html code example
Example: jquery number format comma
var number = 1557564534;
document.body.innerHTML = number.toLocaleString();
// 1,557,564,534
var number = 1557564534;
document.body.innerHTML = number.toLocaleString();
// 1,557,564,534