11 lines
302 B
Markdown
11 lines
302 B
Markdown
# Async/await
|
|
|
|
Keywords `async` and `await` provide a more elegant way to write the code using promises.
|
|
|
|
## Async functions
|
|
|
|
The `async` function is like a regular one, but it wraps a returned value in a `Promise`.
|
|
|
|
|
|
|
|
Nowadays, promises are de-facto standard for asynchronous actions, when we need to
|