We're a place where coders share, stay up-to-date and grow their careers.
(async () => { this.profile = await getProfile(this.id); this.comments = await getProfile(this.id); this.friends = await getProfile(this.id); })();
Discussion on: Understanding JavaScript async/await in 7 seconds
Replies for: How do you implement the following with async/await: getProfile(this.id).then(data => { this.profile = data; }); getComments(this.id).then(da...