DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript zero pad
const str = "5"; str.padStart(4, "0"); // "0005"
PREVIOUS
NEXT
Tagged:
#javascript
#pad
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit