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