Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

commas for thousands js

var number = 3500;

console.log(new Intl.NumberFormat().format(number));
// → '3,500' if in US English locale
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #commas #thousands #js
ADD COMMENT
Topic
Name
8+3 =