minor fixes

This commit is contained in:
Violet Bora Lee 2020-01-27 15:24:23 +09:00
parent ff042a0319
commit e85e48f8d0
4 changed files with 5 additions and 5 deletions

View file

@ -347,7 +347,7 @@ generator.next(4); // --> pass the result into the generator
2. Then, as shown at the picture above, the result of `yield` gets into the `question` variable in the calling code.
3. On `generator.next(4)`, the generator resumes, and `4` gets in as the result: `let result = 4`.
Please note, the outer code does not have to immediately call`next(4)`. It may take time. That's not a problem: the generator will wait.
Please note, the outer code does not have to immediately call `next(4)`. It may take time. That's not a problem: the generator will wait.
For instance: