padStart() method pads the current string with another string (multiple times, if needed) until the resulting string reaches the given length. The padding is applied from the start of the current string.
padStart() method accepts the following 2 parameters:
- The length of the resulting string once the current
str has been padded. If the value is less than
str is returned as-is.
- The string to pad the current