In the last article we discussed how to use APIs that return promises. In this article we'll look at the other side — how to implement APIs that return promises. This is a much less common task than using promise-based APIs, but it's still worth knowing about.... When you create a new promise you supply the implementation...alarm(person, delay) { return new Promise((resolve, reject) =>...