12-140%
2-470%
4-560.01%
3.1-9.10%
3.2-9.30.01%
4-6.40%
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2019.
The padStart() and padEnd() methods pad the current string with a given string (eventually repeated) so that the resulting string reaches a given length. The pad is applied from the start (left) of the current string for padStart(), and applied from the end (right) of the current string for padEnd().