Answers for "js insert a point each three digit"

0

js insert a point each three digit

function formatNumber(num) {
  return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.')
}
Posted by: Guest on March-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language