![Add characters to the end of a string if it’s less than a certain length](https://javascriptsource.com/wp-content/uploads/2021/12/Add-characters-to-the-end-of-a-string-if-its-less-than-a-certain-length-702x526.jpg)
Accepts two arguments: the length the string should be, and what characters to add if it’s not that length. The characters to use is optional, and defaults to a space ().
// Add a leading zero for hours below 10
var minutes0 = '0';
var minutes12 = '12';
// returns "00"
minutes0.padEnd(2, '0');
// returns "12"
minutes12.padEnd(2, '0');
Source
https://vanillajstoolkit.com/reference/strings/string-padend/