November 2013
Intermediate to advanced
148 pages
3h 12m
English
One thing I really love about JavaScript is its extreme flexibility. In JavaScript there are seven different ways of doing anything, and you get to pick the one you like. This is especially true of managing asynchronous code.
We’ve already seen a number of approaches to working with asynchronous code in JavaScript. Early on, we used regular Node.js callbacks, and then talked about EventEmitters and streams. We explored the async module and its suite of asynchronous coding utilities, as well.
Now let’s turn to the RESTful APIs for editing book bundles. Here we’ll talk about promises—another approach to managing asynchronous code.
The first thing we’ll need for our bundle ...
Read now
Unlock full access