JSFiddle - React, Tailwind, and code Playground
JavaScript
function countdown()
{
var count1 = 10;
while( count1 >= 0) {
var myTimer = setInterval((function() {
console.log(count1);
}(count1)), 1000);
count1 = count1 - 1;
}
}
countdown()