Sen Hongo
published: 2022/08/04
Using String.prototype.padStart()
const n = 1; String(n).padStart(5, '0'); // '00001'