Padding Both Sides of a String
Learn how to add a padding character to both ends of a string up to a certain length.
We'll cover the following
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 1200+ tech skills courses.