Last updated
⚠️ Not a number method.
.padStart()works only on strings. See strings/.padstart.md.
Treats the number as a string and returns a new string of length num, padded on the left with val (repeated as needed).
val - padding string.
num - total desired length.
log 7.padStart("0",3) // "007"Last updated