Spelling and grammar fixes to generators and modules

This commit is contained in:
jasmaa 2019-06-11 22:35:05 -04:00
parent e1c0d6235b
commit 3e2e8c7e23
No known key found for this signature in database
GPG key ID: 422283323FC9915B
2 changed files with 2 additions and 2 deletions

View file

@ -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`:

View file

@ -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.