Skip to content

Commit bb6ab92

Browse files
authored
Merge pull request lydiahallie#287 from hellopovi/question#102
Fixes typo in Question 102.
2 parents 97ac80e + 8feb4ea commit bb6ab92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

th-TH/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3262,7 +3262,7 @@ We can get this value with both `.then` and the `await` keyword in an `async` fu
32623262

32633263
In the `firstFunction`, we (sort of) put the myPromise function aside while it was running, but continued running the other code, which is `console.log('second')` in this case. Then, the function resolved with the string `I have resolved`, which then got logged after it saw that the callstack was empty.
32643264

3265-
With the await keyword in `secondFunction`, we literally pause the execution of an async function until the value has been resolved befoer moving to the next line.
3265+
With the await keyword in `secondFunction`, we literally pause the execution of an async function until the value has been resolved before moving to the next line.
32663266

32673267
This means that it waited for the `myPromise` to resolve with the value `I have resolved`, and only once that happened, we moved to the next line: `second` got logged.
32683268

0 commit comments

Comments
 (0)