Fix name of JavaScript
This commit is contained in:
parent
3b14ed8185
commit
c5ce5578fc
32 changed files with 61 additions and 61 deletions
|
@ -79,7 +79,7 @@ No, it's not, because it may lead to naming conflicts: the same variable name ca
|
|||
|
||||
As of now, the multi-purpose `window` is considered a design mistake in the language.
|
||||
|
||||
Luckily, there's a "road out of hell", called "Javascript modules".
|
||||
Luckily, there's a "road out of hell", called "JavaScript modules".
|
||||
|
||||
If we set `type="module"` attribute on a `<script>` tag, then such script is considered a separate "module" with its own top-level scope (lexical environment), not interfering with `window`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue