JSFiddle - React, Tailwind, and code Playground

by Parth Akbari

JavaScript

for(i = 1; i <= 3; i++){
    (function(i){
        setTimeout(function(){
            alert(i);
        }, 1000 * i);
    }(i));
}