- Modern JavaScript Web Development Cookbook
- Federico Kereki
- 49字
- 2021-07-02 14:49:57
How to do it...
Using functions as callbacks is the most classic way of dealing with async calls, but this has several disadvantages, such as code that is harder to read and series difficulties in dealing with some not-too-uncommon cases. Here, we'll look at two alternative ways of working.