DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
two digit js'
var myNumber = 8; var formattedNumber = ("0" + myNumber).slice(-2); console.log(formattedNumber);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#digit
ADD COMMENT
Topic
COMMENT
Name
6+4 =
Submit