Search
 
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
Name
8+5 =