Answers for "js php number format space"

PHP
0

js php number format space

function numberWithSpaces(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
}
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language