Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I avoid async/await in JavaScript. Parent comment
Compare with
const myPromise = new Promise((resolve, reject) => resolve(”foo”));
There are no comments on this comment yet.
Compare with
Afterwards either try-catch await myPromise, or use myPromise.then().catch()