Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add comma after every 3 digits javascript

const formatNumbers = (string) => {
  const num = parseInt(string);
  const newText = num.toLocaleString();
  
  return newText
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #add #comma #digits #javascript
ADD COMMENT
Topic
Name
2+3 =