Padding strings in Javascript

padStart adds characters to the start of a string. padEnd does the same to the end of a string.