Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pad js

//"".padStart(length, fillerString);
//"".padEnd(length, fillerString);
console.log("hell".padEnd(8, "0p"));
//hell0p0p
console.log("FF".padStart(8, "0"));
//000000FF
 
PREVIOUS NEXT
Tagged: #pad #js
ADD COMMENT
Topic
Name
5+9 =