JSFiddle - React, Tailwind, and code Playground
JavaScript
let a = new Promise((resolve, reject)=>{
setTimeout(function(){
resolve(console.log("HelloWorld"))
},3000);
});
let test = async () =>{
let b = await a;
console.log("After promise call");
}
test();