Wait Function
const wait = new Promise((resolve) => setTimeout(resolve, ms));
const asyncFunc - async() =>{
await wait(1000);
console.log('async')
}
asyncFunction();
const wait = new Promise((resolve) => setTimeout(resolve, ms));
const asyncFunc - async() =>{
await wait(1000);
console.log('async')
}
asyncFunction();