Skip to content

Glossary: JavaScript Basics

padStart / padEnd

Also written: padStart, padEnd

String methods that add characters (spaces by default) at the start or end until the string reaches a given length, handy for lining up columns.

Where the book teaches it

Related terms

StringMethod