Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (let i = 0; i < 5; i++) {
- setTimeout(function () { console.log(i) }, i*1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement