Fix name of JavaScript
This commit is contained in:
parent
3b14ed8185
commit
c5ce5578fc
32 changed files with 61 additions and 61 deletions
|
@ -12,7 +12,7 @@ async function f() {
|
|||
}
|
||||
```
|
||||
|
||||
The word "async" before a function means one simple thing: a function always returns a promise. Even If a function actually returns a non-promise value, prepending the function definition with the "async" keyword directs Javascript to automatically wrap that value in a resolved promise.
|
||||
The word "async" before a function means one simple thing: a function always returns a promise. Even If a function actually returns a non-promise value, prepending the function definition with the "async" keyword directs JavaScript to automatically wrap that value in a resolved promise.
|
||||
|
||||
For instance, the code above returns a resolved promise with the result of `1`, let's test it:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue