commit
6dd11633bd
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ let value = await promise;
|
|||
|
||||
The keyword `await` makes JavaScript wait until that promise settles and returns its result.
|
||||
|
||||
Here's example with a promise that resolves in 1 second:
|
||||
Here's an example with a promise that resolves in 1 second:
|
||||
```js run
|
||||
async function f() {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue