Skip to content

Commit 6a3ca84

Browse files
authored
Merge pull request #779 from ope-oguntoye/patch-1
Update article.md
2 parents e458055 + c775348 commit 6a3ca84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-async/05-async-await/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async function f() {
1212
}
1313
```
1414

15-
The word "async" before a function means one simple thing: a function always returns a promise. If the code has `return <non-promise>` in it, then JavaScript automatically wraps it into a resolved promise with that value.
15+
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.
1616

1717
For instance, the code above returns a resolved promise with the result of `1`, let's test it:
1818

0 commit comments

Comments
 (0)