Skip to content
Permalink
Browse files
Docs: Fix typo in no-implicit-globals.md (#14954)
  • Loading branch information
jwbth committed Aug 21, 2021
1 parent 9a4ae3b commit e98f14d356b5ff934dd2a0a1fb226f1b15317ab3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -70,7 +70,7 @@ function bar() {}
### Global variable leaks

When the code is not in `strict` mode, an assignment to an undeclared variable creates
a new global variable. This will happen even is the code is in a function.
a new global variable. This will happen even if the code is in a function.

This does not apply to ES modules since the module code is implicitly in `strict` mode.

0 comments on commit e98f14d

Please sign in to comment.