+ 2
I want to restart countdown.
I wish when user click on Resend Button then the again setInterval() restart. https://code.sololearn.com/Wh2iQk06AOl0/?ref=app
2 Respuestas
+ 2
I had a quick glance, you will need to set your timer ( t variable ) back to 5 after functions is executed so it can go again from 5. Otherwise it stays at 0 so it will never start again as condition is not met.