From 26f7f76bab2bd7a0a946412b7ddf8292cc877a8a Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Tue, 10 Dec 2024 21:18:06 +0100 Subject: [PATCH] Update blog/2024-10-01-local-variables.md Co-authored-by: Kevin Ness <46825870+nekevss@users.noreply.github.com> --- blog/2024-10-01-local-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/2024-10-01-local-variables.md b/blog/2024-10-01-local-variables.md index d0dee11..828a626 100644 --- a/blog/2024-10-01-local-variables.md +++ b/blog/2024-10-01-local-variables.md @@ -90,7 +90,7 @@ console.log(a); // 1 You can see that variables are tied to their scopes. All three variables `a` never change their values. -They just exist in their respective scopes and as soon as the scope has ended they are no longer accessible. +The variables just exist in their respective scopes, and as soon as the scope has ended, they are no longer accessible. Instead, the previous outer scope returns to being the current scope and its variables are accessible. You can see that in addition to blocks, functions also have scopes.