From 79e799feb5181a0a0688092b07bd6e2e7c53100d Mon Sep 17 00:00:00 2001 From: alirezaghey <26653424+alirezaghey@users.noreply.github.com> Date: Fri, 14 May 2021 16:02:54 +0000 Subject: [PATCH] fix(curriculum): scoping variables language improvement (#42135) --- .../basic-javascript/global-scope-and-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md index 72306dcf1d..693ced55f4 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md @@ -11,7 +11,7 @@ dashedName: global-scope-and-functions In JavaScript, scope refers to the visibility of variables. Variables which are defined outside of a function block have Global scope. This means, they can be seen everywhere in your JavaScript code. -Variables which are used without the `var` keyword are automatically created in the `global` scope. This can create unintended consequences elsewhere in your code or when running a function again. You should always declare your variables with `var`. +Variables which are declared without the `var` keyword are automatically created in the `global` scope. This can create unintended consequences elsewhere in your code or when running a function again. You should always declare your variables with `var`. # --instructions--