Created
December 29, 2020 05:18
-
-
Save lucasinocente/b3f0e34ab0be4acd850df6f4abfff80e 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
const minutes = 20 | |
const now = Date.now() | |
const minutesInMiliseconds = minutes * 60000 | |
const timerSize = minutesInMiliseconds / 2000 | |
console.log(now) | |
console.log(minutesInMiliseconds) | |
console.log(timerSize) | |
const moveTimer = leftPosicion => { | |
console.log('leftPosicion', leftPosicion) | |
setTimeout(() => { | |
moveTimer(leftPosicion - 1) | |
}, 1000) | |
} | |
moveTimer(timerSize) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment