JSFiddle - React, Tailwind, and code Playground

by coktopus

JavaScript

for (let i = 1; i <= 5; i++) {
    setTimeout(function () {
        console.log('I reached step ' + i);
    }, 1000 * i);
}