We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d064ad commit 8b4f5a7Copy full SHA for 8b4f5a7
18_Day_Promises/18_day_promises.md
@@ -197,7 +197,7 @@ square(2)
197
Promise {<resolved>: 4}
198
```
199
200
-The word _async_ in front of a function means that function will return a promise. The above square function instead of a value it returned a promise.
+The word _async_ in front of a function means that function will return a promise. The above square function instead of a value it returns a promise.
201
202
How do we access the value from the promise? To access the value from the promise, we will use the keyword _await_.
203
@@ -206,6 +206,7 @@ const square = async function (n) {
206
return n * n
207
}
208
const value = await square(2)
209
+console.log(value)
210
211
212
```sh
0 commit comments