-
-
Save usmaanalii/f0fedc9697313a2480ce745ac1b4ce0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
countdown = setInterval(() => { | |
// method | |
const secondsLeft = Math.round((then - Date.now()) / 1000); | |
}, 1000); // time delay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment