Skip to content

Commit b137fd2

Browse files
LeoBakerHytchscottgonzalez
authored andcommitted
Scope: Fix explanation of variable scope
Closes jquerygh-473
1 parent 10ed6d1 commit b137fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/javascript-101/scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ sayHello(); // "hello"
121121
console.log( foo ); // "world"
122122
```
123123

124-
When you reference a global variable within a function, that function can see changes to the variable value after the function is defined.
124+
When, within a function, you reference a variable defined in an outer scope, that function can see changes to the variable's value after the function is defined.
125125

126126
```
127127
var myFunction = function() {

0 commit comments

Comments
 (0)