Padding strings in Javascript

padStart

padStart adds characters to the start of a string.

padStart adds spaces by default. You can specify different characters. padEnd does the same to the end of a string.