Skip to content

Glossary: Data Structures and Algorithms in JavaScript

padStart / padEnd

Also written: padStart, padEnd

String methods that pad text with a character up to a set width, on the left or right. They line up table columns and turn 9 into "09" in clock times.

Where the book teaches it