JSFiddle - React, Tailwind, and code Playground
HTML
<div>start</div>
JavaScript
for(var i=6;i>=0;i--)
{
setTimeout((function(i)
{
$("div").delay(4000).html(i);
alert(i); //if commented unable to see the countdown
})
(i),4000);
//alert(1);
}