Spelling and grammar fixes to generators and modules
This commit is contained in:
parent
e1c0d6235b
commit
3e2e8c7e23
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ That's natural, as it expects to find `Symbol.iterator`, same as `for..of` witho
|
||||||
|
|
||||||
## Async generators
|
## Async generators
|
||||||
|
|
||||||
As we already know, JavaScript also supprots generators, and they are iterable.
|
As we already know, JavaScript also supports generators, and they are iterable.
|
||||||
|
|
||||||
Let's recall a sequence generator from the chapter [](info:generators). It generates a sequence of values from `start` to `end`:
|
Let's recall a sequence generator from the chapter [](info:generators). It generates a sequence of values from `start` to `end`:
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
As our application grows bigger, we want to split it into multiple files, so called 'modules'.
|
As our application grows bigger, we want to split it into multiple files, so called 'modules'.
|
||||||
A module usually contains a class or a library of useful functions.
|
A module usually contains a class or a library of useful functions.
|
||||||
|
|
||||||
For a long time, JavaScript existed without a language-level module syntax. That wasn't a problem, because initially scripts were small and simple. So there was no need.
|
For a long time, JavaScript existed without a language-level module syntax. That wasn't a problem, because initially scripts were small and simple, so there was no need.
|
||||||
|
|
||||||
But eventually scripts became more and more complex, so the community invented a variety of ways to organize code into modules, special libraries to load modules on demand.
|
But eventually scripts became more and more complex, so the community invented a variety of ways to organize code into modules, special libraries to load modules on demand.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue