WeCodeAcademy

Pad a number with leading zeros

Turn it into a string and use padStart.

Examplejavascript
Open in editor »

More JavaScript recipes