Skip to content

Commit 26f7f76

Browse files
raskadnekevss
andauthored
Update blog/2024-10-01-local-variables.md
Co-authored-by: Kevin Ness <[email protected]>
1 parent fa5c518 commit 26f7f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/2024-10-01-local-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ console.log(a); // 1
9090

9191
You can see that variables are tied to their scopes.
9292
All three variables `a` never change their values.
93-
They just exist in their respective scopes and as soon as the scope has ended they are no longer accessible.
93+
The variables just exist in their respective scopes, and as soon as the scope has ended, they are no longer accessible.
9494
Instead, the previous outer scope returns to being the current scope and its variables are accessible.
9595

9696
You can see that in addition to blocks, functions also have scopes.

0 commit comments

Comments
 (0)