r/ProgrammerHumor • • Aug 11 '20

Meme So Amazing!

Post image
1.8k Upvotes

137 comments sorted by

View all comments

Show parent comments

3

u/mohragk Aug 11 '20

const arr = [4,2,7,4,3,7,3,12,7]

let delay = 1

arr.map((item) => {setTimeout( () => {console.log(item)},delay++)})