We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f1e73b + 367dda3 commit 6afd138Copy full SHA for 6afd138
ebook/19_ES8_async-and-await.md
@@ -111,7 +111,7 @@ Let's break down what we just did:
111
- the keyword will tell JavaScript to always return a promise
112
- if we specify to `return <non-promise>` it will return a value wrapped inside a promise
113
- the `await` keyword only works inside an `async` function.
114
-- as the name implies, `await` will tell JavaScript to wait until the promie returns its result
+- as the name implies, `await` will tell JavaScript to wait until the promise returns its result
115
116
Let's see what happens if we try to use `await` outside an `async` function
117
@@ -166,4 +166,4 @@ asyncFunc();
166
167
asyncFunc().catch(console.log);
168
// TypeError: Failed to fetch
169
-```
+```
0 commit comments