(async () => {
let response = await fetch('/article/promise-chaining/user.json');
let user = await response.json();
...
})();
// (BONUS CODE) await with promise
await new Promise(resolve => setTimeout(resolve, 1000))
console.log('Hello!') // 1 seconds after sended console.log