We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6faad commit f24c265Copy full SHA for f24c265
blog/2024-10-01-local-variables.md
@@ -320,7 +320,7 @@ We set the `function` flag on each scope when it is created.
320
The `local` flag on the variables is `true` by default.
321
After creating all the scopes and filling them with their variables, we traverse the ECMAScript code.
322
Every time we find a variable access, we check which variable in which scope is being accessed.
323
-If a variable is not in the current scope we go to the `outer` scope.
+If a variable is not in the current scope, we go to the `outer` scope.
324
If any of the scopes we see until we find the variable is a function scope, we set the `local` flag to `false`.
325
326
Let's visualize the scope analysis by writing out the scopes for this example:
0 commit comments