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