DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js number add zero before
('0' + 11).slice(-2) // '11' ('0' + 4).slice(-2) // '04'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#number
#add
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit