JSFiddle - React, Tailwind, and code Playground
JavaScript
function first(){
setTimeout( function(){
console.log(1);
}, 500 );
}
function second(){
console.log(2);
}
//===================
{
const first = () => {
console.log(1);
}
first();
second();
}