Answers for "JavaScript String Padding - ECMAScript 2017"

0

JavaScript String Padding - ECMAScript 2017

// ECMAScript 2017 added two String methods:
//  padStart and padEnd to support padding at the beginning
//  and at the end of a string.

let text = "5";
text.padStart(4,0)    // Returns 0005
Posted by: Guest on July-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language