JSFiddle - React, Tailwind, and code Playground

JavaScript

for (let i = 0; i < 10; i++) {
setTimeout(() => console.log(i), 1000 * i)
}