Comparison
At this point, we should have a better understanding of the options we have to tame the asynchronous nature of JavaScript. Each one of the solutions presented has its own pros and cons. Let's summarize them in the following table:
Solutions |
Pros |
Cons |
---|---|---|
Plain JavaScript |
|
Might require extra code and relatively complex algorithms |
Async (library) |
|
|
Promises |
|
|