December 2018
Intermediate to advanced
642 pages
15h 5m
English
The first way we can do web service calls is by using promises, and they were (up to the appearance of the more modern async/await statements, which we'll be seeing in the next section) the favorite method. Promises were available some time back (first around 2011 through jQuery's deferred objects, and afterwards by means of libraries such as BlueBird or Q), but in recent JS versions, they became native. Since promises cannot really be considered something new, let's just see some examples so that we can move on to more modern ways of working—no, we won't be even considering going further back than promises, and directly work with callbacks!
Read now
Unlock full access