Answers for "adding commas after thousand"

0

adding commas after thousand

let num = 1234567.89;
let commas = num.toLocaleString("en-US");
 commas = num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
Posted by: Guest on April-05-2022

Code answers related to "adding commas after thousand"

Code answers related to "Javascript"

Browse Popular Code Answers by Language