Configuration

1
Console Output
>

Visual Output

Original String
Hello
Method Used
padStart
Result
*****Hello
Original Length:11
Target Length:15
Padding Added:5 characters
Method Comparison
padStart():
Pads the start of a string with another string until it reaches the target length.
padEnd():
Pads the end of a string with another string until it reaches the target length.