Rewrite promises to async/await when setTimeout() is used

convert promise to async/await
async/await vs promises
await promise
async/await arrow function
async/await nodejs
await javascript
javascript promise
async/await try/catch