my clock counts down like this:
10
9
8…
How can I have it count down like this:
10
09
08
07…?
my clock counts down like this:
10
9
8…
How can I have it count down like this:
10
09
08
07…?
You actually don’t need to write your own function — JS now has its own (padStart
), though it’s not IE-compatible so you might still want to write your own.
thank you, I got everything fixed now