DEV Community

loading...

Discussion on: Understanding JavaScript async/await in 7 seconds

Collapse
nirmalpatel59 profile image
nirmalpatel59
(async () => {
   this.profile = await getProfile(this.id);
   this.comments = await getProfile(this.id);
   this.friends = await getProfile(this.id);
})();