Padding Both Sides of a String
Learn how to add a padding character to both ends of a string up to a certain length.
The padBoth
helper method
In this lesson, we will look at the padBoth
helper method, which adds a padding character to both ends of a string up to a certain length.
Get hands-on with 1300+ tech skills courses.