How can we make Countdown from a particular time to particular time using JavaScript? Including Date also. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How can we make Countdown from a particular time to particular time using JavaScript? Including Date also.

I want to make countdown for time using JavaScript but I'm unable to do it. Can anyone tell me how can I do it?

11th Dec 2018, 4:33 AM
Prajakta
Prajakta - avatar
3 Answers
+ 2
Try to use setInterval with delay and also handle variable too keep track on estimated time (delay*var) once if you want it to stop at certain time you can use clearinterval
11th Dec 2018, 4:45 AM
Taste
Taste - avatar
+ 1
Here the code you could study.. https://code.sololearn.com/WwOtUfr8uQyR/?ref=app
11th Dec 2018, 8:00 AM
Calviղ
Calviղ - avatar