JSFiddle - React, Tailwind, and code Playground
by Sahin Deniz
JavaScript 1.7
let a=()=>new Promise((resolve)=>setTimeout(resolve, 5000));
(async ()=>{
console.log(1);
await a();
console.log(2);
})();
by Sahin Deniz
let a=()=>new Promise((resolve)=>setTimeout(resolve, 5000));
(async ()=>{
console.log(1);
await a();
console.log(2);
})();