Created
February 3, 2022 15:45
-
-
Save alexshelkov/c9a24fa790c6378d943927fc80ffe62f 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
var i = 0; | |
while (i < 3) { | |
setTimeout(() => { // timeout callback | |
console.log(i); | |
}, i * 1000); | |
i++; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment