JSFiddle - React, Tailwind, and code Playground

by Santosh Thakur

JavaScript

var i = 0;
var t = 'time';
for (i = 0; i < 10; i++) {
    setTimeout(function () {
        alert(i + t);
    }, 100);
}