-
Countdown using words and numbers
Hello
I’m trying to create a countdown that uses a mixture of numbers and words. For example, I’m starting a 300 and I want numbers from 300 down to 100. Then I want it to shift to using the numbers written out in word form. For example, ninety-nine, ninety-eight, etc. I’ve been using an expression I found here for the countdown. Here’s the expression:
clockStart = 300;
clockTime = Math.max(clockStart – (time-inPoint),0);
sec = Math.floor(clockTime);
ms = clockTime.toFixed(2).substr(-2);
secAny suggestions? I’m definitely and beginner when it comes to this.