February 2018
Intermediate to advanced
298 pages
8h 22m
English
Although async/await are actually promises under the hood, they help a lot by adding a ton of readability to code. On the surface level, I believe a developer should be aware of minute differences in the usage of async/await versus promises. Here's a glimpse of these:
|
async/await
|
promises
|
| Extremely clean code base | Uglier codebase with nested promises |
| Error handling with native try-catch blocks | Separate catch() method for error handling |
| Syntactic sugar for promises (built on promises) | Native implementation in standard |
| Introduced in ES8 | Introduced in ES6 |
Read now
Unlock full access