JSFiddle - React, Tailwind, and code Playground by sundaramkumar August 26, 2021 JavaScript for (var i = 0; i < 5; i++) { setTimeout(function() { console.log(i); }, 1000 ); }