JSFiddle - React, Tailwind, and code Playground

by Santosh Thakur

JavaScript

var i = 0;
var t = time;
for (i = 0; i < 5; i++) {
    setTimeout(function () {
        console.log(i);
    }, 100);
}