DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript int with commas
var
number
=
1000
;
console
.
log
(
number
.
toLocaleString
(
)
)
;
//output: 1,000
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#int
#commas
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit