sprintf javascript leading zeros code example
Example: js num to string with leading 0
String(<number>).padStart(<places>, '0')
String(42).padStart(5, '0'); // '00042'
String(<number>).padStart(<places>, '0')
String(42).padStart(5, '0'); // '00042'