Update article.md
This commit is contained in:
parent
69bd4b5f3c
commit
f110efc046
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.
|
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
|
```js run
|
||||||
async function f() {
|
async function f() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue