JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

async function a(clb) {
  await setTimeout(() => {
    console.log(1);
     clb();
  }, 500)
  
}
const b = async () => {
 await console.log(2)
}
a(b);