JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

JavaScript

for (var i=0;i<5;i++){
callst (i);
}


function callst (i){
setTimeout(function(){ console.log(i) }, 0);
}