Created
June 22, 2020 11:11
-
-
Save berat/b0551dbe1ced80928082812ede45e459 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
let arr = ["a", "b", "c", "d"]; | |
let seconds = 1000 | |
arr.forEach((item, index) => {setTimeout(() => {console.log(item)}, seconds); seconds += 1000;}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment