JSFiddle - React, Tailwind, and code Playground

by Ishank Dubey

JavaScript

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

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