Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript Promises from the Ground Up. Parent comment
You can indeed translate an async function to an equivalent function that uses .then() but it’s a radical change, not syntactic sugar (as I use that term).
There are no comments on this comment yet.
You can indeed translate an async function to an equivalent function that uses .then() but it’s a radical change, not syntactic sugar (as I use that term).